svn commit: [25590] trunk/busybox/coreutils
vda at busybox.net
vda at busybox.net
Mon Mar 9 16:43:29 UTC 2009
Author: vda
Date: 2009-03-09 16:43:28 +0000 (Mon, 09 Mar 2009)
New Revision: 25590
Log:
uniq: strncmp(a,b, -1) might be problematic, use INT_MAX instead
Modified:
trunk/busybox/coreutils/uniq.c
Changeset:
Modified: trunk/busybox/coreutils/uniq.c
===================================================================
--- trunk/busybox/coreutils/uniq.c 2009-03-09 16:25:33 UTC (rev 25589)
+++ trunk/busybox/coreutils/uniq.c 2009-03-09 16:43:28 UTC (rev 25590)
@@ -45,7 +45,7 @@
};
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);
More information about the busybox-cvs
mailing list