diff options
Diffstat (limited to 'gnu/usr.bin/patch/inp.c')
-rw-r--r-- | gnu/usr.bin/patch/inp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/patch/inp.c b/gnu/usr.bin/patch/inp.c index d77ef65ff841..17f8adb6a9e0 100644 --- a/gnu/usr.bin/patch/inp.c +++ b/gnu/usr.bin/patch/inp.c @@ -79,7 +79,7 @@ plan_a(char *filename) int ifd, statfailed; Reg1 char *s; Reg2 LINENUM iline; - char lbuf[MAXLINELEN]; + char lbuf[INITLINELEN]; int output_elsewhere = strcmp(filename, outname); extern int check_patch; @@ -284,7 +284,7 @@ plan_b(char *filename) pfatal2("can't open file %s", filename); if ((tifd = creat(TMPINNAME, 0666)) < 0) pfatal2("can't open file %s", TMPINNAME); - while (fgets(buf, sizeof buf, ifp) != Nullch) { + while (fgets(buf, buf_size, ifp) != Nullch) { if (revision != Nullch && !found_revision && rev_in_string(buf)) found_revision = TRUE; if ((i = strlen(buf)) > maxlen) |