projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9257671
)
uniq: strncmp(a,b, -1) might be problematic, use INT_MAX instead
author
Denis Vlasenko
<vda.linux@googlemail.com>
Mon, 9 Mar 2009 16:43:28 +0000
(16:43 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Mon, 9 Mar 2009 16:43:28 +0000
(16:43 -0000)
coreutils/uniq.c
patch
|
blob
|
history
diff --git
a/coreutils/uniq.c
b/coreutils/uniq.c
index 091862118667df7154a06556fbca6f0ff3d02441..126eaeef99dd672d243bfab68ce86fd993c79da0 100644
(file)
--- 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);