Set "eob" correctly in add_exclude_file().

This commit is contained in:
Wayne Davison committed 2004-08-05 22:58:17 +00:00
1 parent 84a6379565
commit 7cd72c79ec
1 file changed
+1 -1
+1 -1
View File
@@ -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)