summaryrefslogtreecommitdiffstats
path: root/usr.bin/ctags
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ctags')
-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 b2c313a..bebdeb1 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
OpenPOWER on IntegriCloud