summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko2009-03-09 16:43:28 +0000
committerDenis Vlasenko2009-03-09 16:43:28 +0000
commit1a6adbd71b0ff7b97d51e949ef13882da9910d86 (patch)
tree71d18259326452a0d4073f090c214e26d590f0c9
parent9257671c7628341b8c5daeee30454982c4474137 (diff)
downloadbusybox-1a6adbd71b0ff7b97d51e949ef13882da9910d86.zip
busybox-1a6adbd71b0ff7b97d51e949ef13882da9910d86.tar.gz
uniq: strncmp(a,b, -1) might be problematic, use INT_MAX instead
-rw-r--r--coreutils/uniq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/uniq.c b/coreutils/uniq.c
index 0918621..126eaee 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);