don't print char 0x7f

svn-id: r4881
This commit is contained in:
Max Horn 2002-08-31 14:14:24 +00:00
parent 6fbbe68219
commit caf9817cb1

View File

@ -95,7 +95,7 @@ void hexdump(const byte * data, int len)
printf(" |");
for (i = 0; i < 8; i++) {
c = data[i];
if (c < 32 || c > 127)
if (c < 32 || c >= 127)
c = '.';
printf("%c", c);
}
@ -114,7 +114,7 @@ void hexdump(const byte * data, int len)
printf(" |");
for (i = 0; i < len; i++) {
c = data[i];
if (c < 32 || c > 127)
if (c < 32 || c >= 127)
c = '.';
printf("%c", c);
}