summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-01-27 17:38:17 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-01-27 17:38:17 +0000
commite739f6b9c3aa1a228ff5f9eb3b2eb31c5771a9dc (patch)
tree36e54e72f0a0a7222530c873767a645405509016
parent1ec1f0bd321d724cb3cb69c60d1f13f231def167 (diff)
downloadmtk-20170518-e739f6b9c3aa1a228ff5f9eb3b2eb31c5771a9dc.zip
mtk-20170518-e739f6b9c3aa1a228ff5f9eb3b2eb31c5771a9dc.tar.gz
mtk-20170518-e739f6b9c3aa1a228ff5f9eb3b2eb31c5771a9dc.tar.bz2
fix stupid busybox bin2hex bug
SVN-Revision: 6223
-rw-r--r--package/busybox/patches/120-bin2hex.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/busybox/patches/120-bin2hex.patch b/package/busybox/patches/120-bin2hex.patch
new file mode 100644
index 0000000..05caf04
--- /dev/null
+++ b/package/busybox/patches/120-bin2hex.patch
@@ -0,0 +1,14 @@
+diff -ur busybox.old/libbb/xfuncs.c busybox.dev/libbb/xfuncs.c
+--- busybox.old/libbb/xfuncs.c 2007-01-19 22:23:06.000000000 +0100
++++ busybox.dev/libbb/xfuncs.c 2007-01-27 18:30:56.229172096 +0100
+@@ -339,8 +339,8 @@
+ while (count) {
+ unsigned char c = *cp++;
+ /* put lowercase hex digits */
+- *p++ = 0x10 | bb_hexdigits_upcase[c >> 4];
+- *p++ = 0x10 | bb_hexdigits_upcase[c & 0xf];
++ *p++ = 0x20 | bb_hexdigits_upcase[c >> 4];
++ *p++ = 0x20 | bb_hexdigits_upcase[c & 0xf];
+ count--;
+ }
+ return p;