[go: nahoru, domu]

Skip to content

Commit

Permalink
dump_hex fix: 127 is unprintable
Browse files Browse the repository at this point in the history
  • Loading branch information
jimm committed Jul 13, 2021
1 parent 1b458ca commit e7fcd88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void dump_hex(byte *bytes, size_t size, const char * const msg) {
}
printf(" ");
for (int i = 0; i < chunk_len; ++i) {
printf("%c", (bytes[i] >= 32 && bytes[i] <= 127) ? bytes[i] : '.');
printf("%c", (bytes[i] >= 32 && bytes[i] < 127) ? bytes[i] : '.');
}
puts("");
bytes += chunk_len;
Expand Down

0 comments on commit e7fcd88

Please sign in to comment.