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:
3048b0a
)
Replaced an snprintf() call with pathjoin().
author
Wayne Davison
<wayned@samba.org>
Sat, 24 Jan 2004 22:12:58 +0000
(22:12 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sat, 24 Jan 2004 22:12:58 +0000
(22:12 +0000)
receiver.c
patch
|
blob
|
blame
|
history
diff --git
a/receiver.c
b/receiver.c
index
82f2b0a
..
3c18c4b
100644
(file)
--- a/
receiver.c
+++ b/
receiver.c
@@
-357,8
+357,8
@@
int recv_files(int f_in,struct file_list *flist,char *local_name)
if ((fd1 == -1) && (compare_dest != NULL)) {
/* try the file at compare_dest instead */
-
snprintf(fnamecmpbuf,MAXPATHLEN,"%s/%s"
,
-
compare_dest,
fname);
+
pathjoin(fnamecmpbuf, sizeof fnamecmpbuf
,
+
compare_dest,
fname);
fnamecmp = fnamecmpbuf;
fd1 = do_open(fnamecmp, O_RDONLY, 0);
}