summaryrefslogtreecommitdiff
path: root/usr.bin/strings/strings.c
diff options
context:
space:
mode:
authorhpeyerl <hpeyerl@NetBSD.org>1993-11-12 18:06:06 +0000
committerhpeyerl <hpeyerl@NetBSD.org>1993-11-12 18:06:06 +0000
commit14197c1c8a4e5f4e9afad46aa7ec96ddf8084ce9 (patch)
tree3db701eab6bdfee983fb4d03a6b655f76315bc24 /usr.bin/strings/strings.c
parent2ee028a27aeacc538da3b06324b61656d2e1f4fb (diff)
make "strings -n 3" work. From tmalaher@nt.com
Diffstat (limited to 'usr.bin/strings/strings.c')
-rw-r--r--usr.bin/strings/strings.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/strings/strings.c b/usr.bin/strings/strings.c
index 03590d211bb..f46197a81f6 100644
--- a/usr.bin/strings/strings.c
+++ b/usr.bin/strings/strings.c
@@ -39,7 +39,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)strings.c 5.10 (Berkeley) 5/23/91";*/
-static char rcsid[] = "$Id: strings.c,v 1.2 1993/08/01 18:08:19 mycroft Exp $";
+static char rcsid[] = "$Id: strings.c,v 1.3 1993/11/12 18:06:06 hpeyerl Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -85,7 +85,7 @@ main(argc, argv)
*/
asdata = exitcode = fflg = oflg = 0;
minlen = -1;
- while ((ch = getopt(argc, argv, "-0123456789anof")) != EOF)
+ while ((ch = getopt(argc, argv, "-0123456789an:of")) != EOF)
switch((char)ch) {
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':