aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1998-04-19 18:00:49 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1998-04-19 18:00:49 +0000
commitd459926593b634265fde3cc3d107ba7d9afc4824 (patch)
tree52c1847b456b4775b2fb82b9d577b52c8bd3cf73 /usr.bin
parent0a61a2c2ce40f39993e5b11a14daa3e052e65259 (diff)
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ctags/print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ctags/print.c b/usr.bin/ctags/print.c
index b2c313a556b7..bebdeb1bc90b 100644
--- a/usr.bin/ctags/print.c
+++ b/usr.bin/ctags/print.c
@@ -59,7 +59,7 @@ getline()
saveftell = ftell(inf);
(void)fseek(inf, lineftell, L_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