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:
parent
90c2506c08
commit
3890f2357a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user