summaryrefslogtreecommitdiff
path: root/usr.bin/sort/files.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-01-22 06:43:54 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-01-22 06:43:54 +0000
commit897b0345ef2583e68e7b355c29d59dd1aa0da209 (patch)
treec5df313461da1a2743085e3e30fab3c1508a5d28 /usr.bin/sort/files.c
parentaa47e726ca694936eb0f7133827762410798817e (diff)
Fix off-by-one differently--add an extra byte to buffer (ick).
Don't dump core on empty file.
Diffstat (limited to 'usr.bin/sort/files.c')
-rw-r--r--usr.bin/sort/files.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/sort/files.c b/usr.bin/sort/files.c
index f345877e48e..a11a882ccae 100644
--- a/usr.bin/sort/files.c
+++ b/usr.bin/sort/files.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: files.c,v 1.1 1997/01/20 19:39:50 millert Exp $ */
+/* $OpenBSD: files.c,v 1.2 1997/01/22 06:43:51 millert Exp $ */
/*-
* Copyright (c) 1993
@@ -40,7 +40,7 @@
#if 0
static char sccsid[] = "@(#)files.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: files.c,v 1.1 1997/01/20 19:39:50 millert Exp $";
+static char rcsid[] = "$OpenBSD: files.c,v 1.2 1997/01/22 06:43:51 millert Exp $";
#endif
#endif /* not lint */
@@ -184,7 +184,7 @@ makeline(flno, filelist, nfiles, buffer, bufend, dummy2)
if(flno >= 0) fstack[flno].fp = 0;
} else {
buffer->data[100] = '\000';
- warnx("line too long:ignoring %s...", buffer->data);
+ warnx("line too long: ignoring %s...", buffer->data);
}
}
}