Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for systems such as Unixware that have a cc that does not support -o
[rsync/rsync.git]
/
flist.c
diff --git
a/flist.c
b/flist.c
index
86bf4aa
..
1a89a2f
100644
(file)
--- a/
flist.c
+++ b/
flist.c
@@
-917,7
+917,9
@@
char *f_name(struct file_struct *f)
n = (n+1)%10;
if (f->dirname) {
n = (n+1)%10;
if (f->dirname) {
- slprintf(p, MAXPATHLEN-1, "%s/%s", f->dirname, f->basename);
+ strlcpy(p, f->dirname, MAXPATHLEN-1);
+ strlcat(p, "/", MAXPATHLEN-1);
+ strlcat(p, f->basename, MAXPATHLEN-1);
} else {
strlcpy(p, f->basename, MAXPATHLEN-1);
}
} else {
strlcpy(p, f->basename, MAXPATHLEN-1);
}