From 1a6adbd71b0ff7b97d51e949ef13882da9910d86 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 9 Mar 2009 16:43:28 +0000 Subject: uniq: strncmp(a,b, -1) might be problematic, use INT_MAX instead --- coreutils/uniq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreutils/uniq.c b/coreutils/uniq.c index 091862118..126eaeef9 100644 --- a/coreutils/uniq.c +++ b/coreutils/uniq.c @@ -45,7 +45,7 @@ int uniq_main(int argc UNUSED_PARAM, char **argv) }; skip_fields = skip_chars = 0; - max_chars = -1; + max_chars = INT_MAX; opt_complementary = "f+:s+:w+"; opt = getopt32(argv, "cduf:s:w:", &skip_fields, &skip_chars, &max_chars); -- cgit v1.2.3