aboutsummaryrefslogtreecommitdiffstats
path: root/package/busybox/busybox-1.14.0-awk.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-05-19 12:01:57 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2009-05-19 12:01:57 +0200
commita7ed91a957000fc16fd85720c70fb2e4561e1433 (patch)
tree02ac37bd6ef8d9761dd588c7b899c298b941549d /package/busybox/busybox-1.14.0-awk.patch
parentc219988fdf1240bed6086d72d4414cfecc7c7c25 (diff)
downloadbuildroot-novena-a7ed91a957000fc16fd85720c70fb2e4561e1433.tar.gz
buildroot-novena-a7ed91a957000fc16fd85720c70fb2e4561e1433.zip
busybox: additional 1.14.0 fixes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/busybox/busybox-1.14.0-awk.patch')
-rw-r--r--package/busybox/busybox-1.14.0-awk.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.14.0-awk.patch b/package/busybox/busybox-1.14.0-awk.patch
new file mode 100644
index 000000000..ef194eaf8
--- /dev/null
+++ b/package/busybox/busybox-1.14.0-awk.patch
@@ -0,0 +1,21 @@
+--- busybox-1.14.0/editors/awk.c Tue Apr 14 01:43:09 2009
++++ busybox-1.14.0-awk/editors/awk.c Mon May 18 23:49:29 2009
+@@ -1571,13 +1571,14 @@
+ n++; /* we saw yet another delimiter */
+ } else {
+ pmatch[0].rm_eo = l;
+- if (s[l]) pmatch[0].rm_eo++;
++ if (s[l])
++ pmatch[0].rm_eo++;
+ }
+ memcpy(s1, s, l);
+ /* make sure we remove *all* of the separator chars */
+- while (l < pmatch[0].rm_eo) {
+- s1[l++] = '\0';
+- }
++ do {
++ s1[l] = '\0';
++ } while (++l < pmatch[0].rm_eo);
+ nextword(&s1);
+ s += pmatch[0].rm_eo;
+ } while (*s);