=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/patch/inp.c,v retrieving revision 1.19 retrieving revision 1.20 diff -c -r1.19 -r1.20 *** src/usr.bin/patch/inp.c 2003/07/28 18:35:36 1.19 --- src/usr.bin/patch/inp.c 2003/07/28 19:15:34 1.20 *************** *** 1,7 **** ! /* $OpenBSD: inp.c,v 1.19 2003/07/28 18:35:36 otto Exp $ */ #ifndef lint ! static const char rcsid[] = "$OpenBSD: inp.c,v 1.19 2003/07/28 18:35:36 otto Exp $"; #endif /* not lint */ #include --- 1,7 ---- ! /* $OpenBSD: inp.c,v 1.20 2003/07/28 19:15:34 deraadt Exp $ */ #ifndef lint ! static const char rcsid[] = "$OpenBSD: inp.c,v 1.20 2003/07/28 19:15:34 deraadt Exp $"; #endif /* not lint */ #include *************** *** 85,91 **** int ifd, statfailed; char *s, lbuf[MAXLINELEN]; LINENUM iline; ! struct stat filestat; if (filename == NULL || *filename == '\0') return FALSE; --- 85,91 ---- int ifd, statfailed; char *s, lbuf[MAXLINELEN]; LINENUM iline; ! struct stat filestat; if (filename == NULL || *filename == '\0') return FALSE; *************** *** 220,227 **** i_ptr[iline] = i_womp; for (s = i_womp; *s; s++) { if (*s == '\n') ! i_ptr[++iline] = s + 1; /* these are NOT null ! * terminated */ } input_lines = iline - 1; --- 220,226 ---- i_ptr[iline] = i_womp; for (s = i_womp; *s; s++) { if (*s == '\n') ! i_ptr[++iline] = s + 1; /* these are NOT NUL terminated */ } input_lines = iline - 1;