aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/strings
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1995-02-15 02:47:47 +0000
committerDavid Greenman <dg@FreeBSD.org>1995-02-15 02:47:47 +0000
commita8c6dbca849995dc95f80203572c3d85100c6892 (patch)
treecdbd5e26788f6c21063f6224fcee86fa9138c0c6 /usr.bin/strings
parentf4eba1d716335c6cac3bc6eba9aad5eeafc6f3a6 (diff)
Notes
Diffstat (limited to 'usr.bin/strings')
-rw-r--r--usr.bin/strings/strings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/strings/strings.c b/usr.bin/strings/strings.c
index 398ccacdab39..435e13412f40 100644
--- a/usr.bin/strings/strings.c
+++ b/usr.bin/strings/strings.c
@@ -123,7 +123,7 @@ main(argc, argv)
if (minlen == -1)
minlen = DEF_LEN;
- else {
+ else if (minlen < 1) {
(void)fprintf(stderr, "strings: length less than 1\n");
exit (1);
}