Replaced an snprintf() call with pathjoin().
authorWayne Davison <wayned@samba.org>
Sat, 24 Jan 2004 22:12:58 +0000 (22:12 +0000)
committerWayne Davison <wayned@samba.org>
Sat, 24 Jan 2004 22:12:58 +0000 (22:12 +0000)
receiver.c

index 82f2b0a..3c18c4b 100644 (file)
@@ -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);
                }