1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-20 02:38:43 +00:00

>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
This commit is contained in:
David Greenman 1995-02-15 02:47:47 +00:00
parent f4eba1d716
commit a8c6dbca84
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6413

View File

@ -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);
}