diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-26 23:31:05 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-26 23:31:05 +0000 |
commit | 681114c5ce333c9a1798c4c9c85908a48f58eb49 (patch) | |
tree | 1e1682b33073c2afd28d210b01c7179776146356 /libbb | |
parent | 0c101e0a9286e0dea731c5af42dbc5413f5216cf (diff) | |
download | busybox-w32-681114c5ce333c9a1798c4c9c85908a48f58eb49.tar.gz busybox-w32-681114c5ce333c9a1798c4c9c85908a48f58eb49.tar.bz2 busybox-w32-681114c5ce333c9a1798c4c9c85908a48f58eb49.zip |
fix bin2hex bug. lowercase = uppercase | 0x20, not | 0x10!
git-svn-id: svn://busybox.net/trunk/busybox@17545 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/xfuncs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index f6b904f78..4d85b1181 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c | |||
@@ -343,8 +343,8 @@ char *bin2hex(char *p, const char *cp, int count) | |||
343 | while (count) { | 343 | while (count) { |
344 | unsigned char c = *cp++; | 344 | unsigned char c = *cp++; |
345 | /* put lowercase hex digits */ | 345 | /* put lowercase hex digits */ |
346 | *p++ = 0x10 | bb_hexdigits_upcase[c >> 4]; | 346 | *p++ = 0x20 | bb_hexdigits_upcase[c >> 4]; |
347 | *p++ = 0x10 | bb_hexdigits_upcase[c & 0xf]; | 347 | *p++ = 0x20 | bb_hexdigits_upcase[c & 0xf]; |
348 | count--; | 348 | count--; |
349 | } | 349 | } |
350 | return p; | 350 | return p; |