Commit f91e01d9 authored by Wayne Davison's avatar Wayne Davison

Replaced an snprintf() call with pathjoin().

parent 3048b0a8
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment