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
The length check in make_file() doesn't need to subtract pathname_len
[rsync/rsync.git]
/
flist.c
diff --git
a/flist.c
b/flist.c
index
87dbf41
..
a6c324a
100644
(file)
--- a/
flist.c
+++ b/
flist.c
@@
-1002,8
+1002,7
@@
struct file_struct *make_file(const char *fname, struct file_list *flist,
alloc_pool_t *pool;
char *bp;
alloc_pool_t *pool;
char *bp;
- if (strlcpy(thisname, fname, sizeof thisname)
- >= sizeof thisname - pathname_len) {
+ if (strlcpy(thisname, fname, sizeof thisname) >= sizeof thisname) {
rprintf(FINFO, "skipping overly long name: %s\n", fname);
return NULL;
}
rprintf(FINFO, "skipping overly long name: %s\n", fname);
return NULL;
}