Skip to content

Commit

Permalink
Merge pull request #2546 from jmichelp/patch-3
Browse files Browse the repository at this point in the history
Fix missing line return when viewing dumps
  • Loading branch information
iceman1001 authored Oct 1, 2024
2 parents ce89cda + eb0d92e commit daa2fe1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ char *sprint_hex_ascii(const uint8_t *data, const size_t len) {

while (i < max_len) {
unsigned char c = (unsigned char)data[i];
tmp[pos + i] = isprint(c) ? c : '.';
tmp[pos + i] = (isprint(c) && c != 0xff) ? c : '.';
++i;
}
out:
Expand All @@ -546,7 +546,7 @@ char *sprint_ascii_ex(const uint8_t *data, const size_t len, const size_t min_st

while (i < max_len) {
unsigned char c = (unsigned char)data[i];
tmp[i] = isprint(c) ? c : '.';
tmp[i] = (isprint(c) && c != 0xff) ? c : '.';
++i;
}

Expand Down

0 comments on commit daa2fe1

Please sign in to comment.