=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ctags/print.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- src/usr.bin/ctags/print.c 1996/06/26 05:32:30 1.2 +++ src/usr.bin/ctags/print.c 1997/11/04 08:03:05 1.3 @@ -1,4 +1,4 @@ -/* $OpenBSD: print.c,v 1.2 1996/06/26 05:32:30 deraadt Exp $ */ +/* $OpenBSD: print.c,v 1.3 1997/11/04 08:03:05 deraadt Exp $ */ /* $NetBSD: print.c,v 1.4 1995/09/27 01:06:58 jtc Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)print.c 8.3 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: print.c,v 1.2 1996/06/26 05:32:30 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: print.c,v 1.3 1997/11/04 08:03:05 deraadt Exp $"; #endif #endif /* not lint */ @@ -66,7 +66,7 @@ saveftell = ftell(inf); (void)fseek(inf, lineftell, SEEK_SET); if (xflag) - for (cp = lbuf; GETC(!=, '\n'); *cp++ = c) + for (cp = lbuf; GETC(!=, EOF) && c != '\n'; *cp++ = c) continue; /* * do all processing here, so we don't step through the