diff options
author | dg <dg@FreeBSD.org> | 1995-02-15 02:47:47 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-02-15 02:47:47 +0000 |
commit | 6a684f71bc96701383ba7154cfc0949c5bf90a5c (patch) | |
tree | cdbd5e26788f6c21063f6224fcee86fa9138c0c6 /usr.bin/strings | |
parent | 794fd6ebe42ffcbcc5d27fcafa1697aabdb2e78a (diff) | |
download | FreeBSD-src-6a684f71bc96701383ba7154cfc0949c5bf90a5c.zip FreeBSD-src-6a684f71bc96701383ba7154cfc0949c5bf90a5c.tar.gz |
>Description:
The "strings" program chokes if you try using "-n".
>How-To-Repeat:
Try "strings -n SOMENUMBER SOMEFILE".
>Fix:
Here's a "diff -u" patch that corrects the problem.
Submitted by: Lon Willett <lon%softt.uucp@math.utah.edu> via NetBSD
Diffstat (limited to 'usr.bin/strings')
-rw-r--r-- | usr.bin/strings/strings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/strings/strings.c b/usr.bin/strings/strings.c index 398ccac..435e134 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); } |