summaryrefslogtreecommitdiffstats
path: root/package/busybox
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2008-02-28 14:38:06 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2008-02-28 14:38:06 +0000
commitc4927e52c21629e45cd422e6f660975669412f3c (patch)
treea211a812eec0fce754e7ea81bb5a5afda01ddbdf /package/busybox
parent098749df5182476807f3cfd54929aa43d21616e0 (diff)
downloadbuildroot-novena-c4927e52c21629e45cd422e6f660975669412f3c.tar.gz
buildroot-novena-c4927e52c21629e45cd422e6f660975669412f3c.zip
busybox 1.9.1 fixes
Diffstat (limited to 'package/busybox')
-rw-r--r--package/busybox/busybox-1.9.1-lineedit.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.9.1-lineedit.patch b/package/busybox/busybox-1.9.1-lineedit.patch
new file mode 100644
index 000000000..6f42a8e3b
--- /dev/null
+++ b/package/busybox/busybox-1.9.1-lineedit.patch
@@ -0,0 +1,19 @@
+--- busybox-1.9.1/libbb/lineedit.c Tue Feb 12 17:10:25 2008
++++ busybox-1.9.1-lineedit/libbb/lineedit.c Mon Feb 18 23:26:54 2008
+@@ -246,7 +246,15 @@
+ if (cmdedit_x >= num) {
+ cmdedit_x -= num;
+ if (num <= 4) {
+- printf("\b\b\b\b" + (4-num));
++ /* This is longer by 5 bytes on x86.
++ * Also gets mysteriously
++ * miscompiled for some ARM users.
++ * printf(("\b\b\b\b" + 4) - num);
++ * return;
++ */
++ do {
++ bb_putchar('\b');
++ } while (--num);
+ return;
+ }
+ printf("\033[%uD", num);