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