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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64052

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)