From e3d83aafb40ba31369d41e456c06e929252de2e1 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 18 Mar 2007 17:56:43 +0000 Subject: fix erroneous lowercasing by bb_hexdigits_upcase[i] | 0x10 --- libbb/xfuncs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbb') 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; -- cgit v1.1