mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
Merge pull request #2546 from jmichelp/patch-3
Fix missing line return when viewing dumps
This commit is contained in:
commit
daa2fe1646
1 changed files with 2 additions and 2 deletions
|
@ -529,7 +529,7 @@ char *sprint_hex_ascii(const uint8_t *data, const size_t len) {
|
||||||
|
|
||||||
while (i < max_len) {
|
while (i < max_len) {
|
||||||
unsigned char c = (unsigned char)data[i];
|
unsigned char c = (unsigned char)data[i];
|
||||||
tmp[pos + i] = isprint(c) ? c : '.';
|
tmp[pos + i] = (isprint(c) && c != 0xff) ? c : '.';
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
|
@ -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) {
|
while (i < max_len) {
|
||||||
unsigned char c = (unsigned char)data[i];
|
unsigned char c = (unsigned char)data[i];
|
||||||
tmp[i] = isprint(c) ? c : '.';
|
tmp[i] = (isprint(c) && c != 0xff) ? c : '.';
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue