X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/65e248709676a2633d1c7beb52b31eaeba174312..c16d69b2920711d687de4eacb4d38ece3af95973:/exclude.c diff --git a/exclude.c b/exclude.c index 8dab79fe..d02c462c 100644 --- 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. */ - char *eob = line + MAXPATHLEN - 1; + char *eob = line + sizeof line - 1; int word_split = xflags & XFLG_WORD_SPLIT; if (!fname || !*fname)