mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-26 23:58:19 -04:00
Set "eob" correctly in add_exclude_file().
This commit is contained in:
1 parent
84a6379565
commit
7cd72c79ec
1 file changed
+1
-1
@@ -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. */
|
||||
char *eob = line + MAXPATHLEN - 1;
|
||||
char *eob = line + sizeof line - 1;
|
||||
int word_split = xflags & XFLG_WORD_SPLIT;
|
||||
|
||||
if (!fname || !*fname)
|
||||
|
||||
Reference in new issue
Block a user