[kernel] revert 15922 - add back 2.6.29 kernel support
[openwrt.git] / package / busybox / patches / 430-uniq_memleak.patch
index 10f464b..48127a5 100644 (file)
@@ -1,12 +1,11 @@
-diff -ur bb.old/coreutils/uniq.c bb.dev/coreutils/uniq.c
---- bb.old/coreutils/uniq.c    2007-01-24 22:34:43.000000000 +0100
-+++ bb.dev/coreutils/uniq.c    2007-02-16 20:04:19.245454368 +0100
-@@ -83,6 +83,8 @@
+--- a/coreutils/uniq.c
++++ b/coreutils/uniq.c
+@@ -82,6 +82,8 @@ int uniq_main(int argc UNUSED_PARAM, cha
  
-                       if (!s0 || strcmp(e0, e1)) {
+                       if (!s0 || strncmp(e0, e1, max_chars)) {
                                break;
 +                      } else {
 +                              free(s1);
                        }
  
-                       ++dups;          /* Note: Testing for overflow seems excessive. */
+                       ++dups;  /* note: testing for overflow seems excessive. */
This page took 0.021918 seconds and 4 git commands to generate.