diff options
author | Denis Vlasenko | 2007-03-18 17:56:43 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-03-18 17:56:43 +0000 |
commit | e3d83aafb40ba31369d41e456c06e929252de2e1 (patch) | |
tree | a32c95ebf0810b37458b82d17757cb88d4b5e7fa /libbb | |
parent | bbbb7e02fcd116390eaa86d701b674ca3f3312f6 (diff) | |
download | busybox-e3d83aafb40ba31369d41e456c06e929252de2e1.zip busybox-e3d83aafb40ba31369d41e456c06e929252de2e1.tar.gz |
fix erroneous lowercasing by bb_hexdigits_upcase[i] | 0x10
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 c059e41..ed356a3 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c @@ -340,8 +340,8 @@ char *bin2hex(char *p, const char *cp, int count) 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; |