Don't coredump on long input lines. If anyone actually cares, this should

be fixed to actually process long lines instead of truncating them.

Obtained from:	OpenBSD
This commit is contained in:
Kris Kennaway 2000-07-31 10:14:06 +00:00
parent 90c2506c08
commit 3890f2357a

View File

@ -170,7 +170,7 @@ filter(f)
{
register c;
while ((c = getc(f)) != EOF) switch(c) {
while ((c = getc(f)) != EOF && col < MAXBUF) switch(c) {
case '\b':
if (col > 0)