mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-26 15:21:08 +02:00
fix stupid busybox bin2hex bug
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6223 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
32a92c2df9
commit
dd69725874
14
package/busybox/patches/120-bin2hex.patch
Normal file
14
package/busybox/patches/120-bin2hex.patch
Normal file
@ -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;
|
Loading…
x
Reference in New Issue
Block a user