mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64052
|
@ -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 a new issue