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:
84a6379
)
Set "eob" correctly in add_exclude_file().
author
Wayne Davison
<wayned@samba.org>
Thu, 5 Aug 2004 22:58:17 +0000
(22:58 +0000)
committer
Wayne Davison
<wayned@samba.org>
Thu, 5 Aug 2004 22:58:17 +0000
(22:58 +0000)
exclude.c
patch
|
blob
|
blame
|
history
diff --git
a/exclude.c
b/exclude.c
index
8dab79f
..
d02c462
100644
(file)
--- a/
exclude.c
+++ b/
exclude.c
@@
-322,7
+322,7
@@
void add_exclude_file(struct exclude_list_struct *listp, const char *fname,
{
FILE *fp;
char line[MAXPATHLEN+3]; /* Room for "x " prefix and trailing slash. */
{
FILE *fp;
char line[MAXPATHLEN+3]; /* Room for "x " prefix and trailing slash. */
- char *eob = line +
MAXPATHLEN
- 1;
+ char *eob = line +
sizeof line
- 1;
int word_split = xflags & XFLG_WORD_SPLIT;
if (!fname || !*fname)
int word_split = xflags & XFLG_WORD_SPLIT;
if (!fname || !*fname)