diff options
author | kris <kris@FreeBSD.org> | 2000-07-31 10:14:06 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-07-31 10:14:06 +0000 |
commit | 157ad2beb52bfbd347b54f4a232d7c3e2377cfdd (patch) | |
tree | ab541b29799ecf636041fa2343895b51e7a12bb9 | |
parent | 37a9bf623234815f0a1decdb0a11e462b3565c6e (diff) | |
download | FreeBSD-src-157ad2beb52bfbd347b54f4a232d7c3e2377cfdd.zip FreeBSD-src-157ad2beb52bfbd347b54f4a232d7c3e2377cfdd.tar.gz |
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
-rw-r--r-- | usr.bin/ul/ul.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ul/ul.c b/usr.bin/ul/ul.c index cfdd552..597add1 100644 --- a/usr.bin/ul/ul.c +++ b/usr.bin/ul/ul.c @@ -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) |