mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-05-19 12:25:42 -04:00
dropped the "const" from the return value of safe_fname() because
some callers would like to manipulate the string in the buffer.
This commit is contained in:
2
util.c
2
util.c
@@ -882,7 +882,7 @@ int pop_dir(char *dir)
|
||||
* empty line. This function can return only MAX_SAFE_NAMES values at a
|
||||
* time! The returned value can be longer than MAXPATHLEN (because we
|
||||
* may be trying to output an error about a too-long filename)! */
|
||||
const char *safe_fname(const char *fname)
|
||||
char *safe_fname(const char *fname)
|
||||
{
|
||||
#define MAX_SAFE_NAMES 4
|
||||
static char fbuf[MAX_SAFE_NAMES][MAXPATHLEN*2];
|
||||
|
||||
Reference in New Issue
Block a user