commit: 6d733e87d9a69bca4f54ea3eac413c45cb51b935
parent f45b273f5204ef5edc63886dda795c6db94d75b0
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sun, 15 Dec 2024 02:24:56 +0100
cmd/strings: remove errorneous LONG_MIN check
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmd/strings.c b/cmd/strings.c
@@ -7,7 +7,7 @@
#include <ctype.h> /* isprint() */
#include <errno.h> /* errno */
#include <fcntl.h> /* open(), O_RDONLY */
-#include <limits.h> /* LONG_MIN, LONG_MAX */
+#include <limits.h> /* LONG_MAX */
#include <stdio.h> /* fprintf(), BUFSIZ */
#include <stdlib.h> /* strtol() */
#include <string.h> /* strerror(), strncmp(), memset() */
@@ -129,7 +129,7 @@ main(int argc, char *argv[])
usage();
return 1;
}
- if(opt_min_strlen == LONG_MIN || opt_min_strlen < 1)
+ if(opt_min_strlen < 1)
{
fprintf(stderr, "strings: error: Option `-n %s` is too small\n", optarg);
usage();