Add macosx fix from #1407
[openwrt.git] / package / busybox / patches / 120-bin2hex.patch
1 diff -ur busybox.old/libbb/xfuncs.c busybox.dev/libbb/xfuncs.c
2 --- busybox.old/libbb/xfuncs.c  2007-01-19 22:23:06.000000000 +0100
3 +++ busybox.dev/libbb/xfuncs.c  2007-01-27 18:30:56.229172096 +0100
4 @@ -339,8 +339,8 @@
5         while (count) {
6                 unsigned char c = *cp++;
7                 /* put lowercase hex digits */
8 -               *p++ = 0x10 | bb_hexdigits_upcase[c >> 4];
9 -               *p++ = 0x10 | bb_hexdigits_upcase[c & 0xf];
10 +               *p++ = 0x20 | bb_hexdigits_upcase[c >> 4];
11 +               *p++ = 0x20 | bb_hexdigits_upcase[c & 0xf];
12                 count--;
13         }
14         return p;