mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 06:41:51 +00:00
don't print char 0x7f
svn-id: r4881
This commit is contained in:
parent
6fbbe68219
commit
caf9817cb1
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user