Commit aa359efb authored by Rich Prohaska's avatar Rich Prohaska

don't sign extend the unprintables

git-svn-id: file:///svn/tokudb@2370 c7de825b-a66e-492c-adef-691d508d4ae1
parent f29f26f2
...@@ -32,7 +32,7 @@ void print_item (bytevec val, ITEMLEN len) { ...@@ -32,7 +32,7 @@ void print_item (bytevec val, ITEMLEN len) {
printf("\""); printf("\"");
ITEMLEN i; ITEMLEN i;
for (i=0; i<len; i++) { for (i=0; i<len; i++) {
char ch = ((char*)val)[i]; unsigned char ch = ((unsigned char*)val)[i];
if (isprint(ch) && ch!='\\' && ch!='"') { if (isprint(ch) && ch!='\\' && ch!='"') {
printf("%c", ch); printf("%c", ch);
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment