svn commit: branches/busybox_1_4_stable: include libbb
vda at busybox.net
vda at busybox.net
Sun Mar 18 17:56:44 UTC 2007
Author: vda
Date: 2007-03-18 10:56:43 -0700 (Sun, 18 Mar 2007)
New Revision: 18138
Log:
fix erroneous lowercasing by bb_hexdigits_upcase[i] | 0x10
Modified:
branches/busybox_1_4_stable/include/libbb.h
branches/busybox_1_4_stable/libbb/xfuncs.c
Changeset:
Modified: branches/busybox_1_4_stable/include/libbb.h
===================================================================
--- branches/busybox_1_4_stable/include/libbb.h 2007-03-18 14:43:21 UTC (rev 18137)
+++ branches/busybox_1_4_stable/include/libbb.h 2007-03-18 17:56:43 UTC (rev 18138)
@@ -690,7 +690,7 @@
extern const char bb_msg_standard_output[];
extern const char bb_str_default[];
-/* NB: (bb_hexdigits_upcase[i] | 0x10) -> lowercase hex digit */
+/* NB: (bb_hexdigits_upcase[i] | 0x20) -> lowercase hex digit */
extern const char bb_hexdigits_upcase[];
extern const char bb_path_mtab_file[];
Modified: branches/busybox_1_4_stable/libbb/xfuncs.c
===================================================================
--- branches/busybox_1_4_stable/libbb/xfuncs.c 2007-03-18 14:43:21 UTC (rev 18137)
+++ branches/busybox_1_4_stable/libbb/xfuncs.c 2007-03-18 17:56:43 UTC (rev 18138)
@@ -340,8 +340,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;
More information about the busybox-cvs
mailing list