summaryrefslogtreecommitdiffstats
path: root/usr.bin/ul
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-07-31 10:14:06 +0000
committerkris <kris@FreeBSD.org>2000-07-31 10:14:06 +0000
commit157ad2beb52bfbd347b54f4a232d7c3e2377cfdd (patch)
treeab541b29799ecf636041fa2343895b51e7a12bb9 /usr.bin/ul
parent37a9bf623234815f0a1decdb0a11e462b3565c6e (diff)
downloadFreeBSD-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
Diffstat (limited to 'usr.bin/ul')
-rw-r--r--usr.bin/ul/ul.c2
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)
OpenPOWER on IntegriCloud