diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-01-27 17:38:17 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-01-27 17:38:17 +0000 |
commit | dd697258740d95cd27b54b059be24d7417d58c55 (patch) | |
tree | 1f5b938513f18c820c81c621cd51b6e14126e118 | |
parent | 32a92c2df9ea984e82b7d5195f2f183fc1562387 (diff) |
fix stupid busybox bin2hex bug
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6223 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/busybox/patches/120-bin2hex.patch | 14 |
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 0000000000..05caf04c43 --- /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; |