mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Have tinytest tolerate systems where char has > 8 bytes
CID 1064418
This commit is contained in:
+1
-1
@@ -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--)
|
||||
|
||||
Reference in New Issue
Block a user