Have tinytest tolerate systems where char has > 8 bytes

CID 1064418
This commit is contained in:
Nick Mathewson
2015-02-17 08:40:55 -05:00
parent c3813e2e64
commit 7620c613e8
+1 -1
View File
@@ -490,7 +490,7 @@ tinytest_format_hex_(const void *val_, unsigned long len)
return strdup("<allocation failure>");
cp = result;
for (i=0;i<len;++i) {
*cp++ = "0123456789ABCDEF"[val[i] >> 4];
*cp++ = "0123456789ABCDEF"[(val[i] >> 4)&0x0f];
*cp++ = "0123456789ABCDEF"[val[i] & 0x0f];
}
while (ellipses--)