Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddd74b6
)
dropped the "const" from the return value of safe_fname() because
author
Wayne Davison
<wayned@samba.org>
Wed, 30 Mar 2005 19:34:20 +0000
(19:34 +0000)
committer
Wayne Davison
<wayned@samba.org>
Wed, 30 Mar 2005 19:34:20 +0000
(19:34 +0000)
some callers would like to manipulate the string in the buffer.
util.c
patch
|
blob
|
blame
|
history
diff --git
a/util.c
b/util.c
index
ab0e151
..
b20cdb6
100644
(file)
--- a/
util.c
+++ b/
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)! */
-c
onst c
har *safe_fname(const char *fname)
+char *safe_fname(const char *fname)
{
#define MAX_SAFE_NAMES 4
static char fbuf[MAX_SAFE_NAMES][MAXPATHLEN*2];