mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-23 13:37:35 +08:00
fix: remove compile warnings (@winguru)
This commit is contained in:
parent
4bfc3ca8c9
commit
9e527537c6
1 changed files with 9 additions and 7 deletions
|
@ -143,9 +143,11 @@ void Dbhexdump(int len, uint8_t *d, bool bAsci) {
|
||||||
ascii[l]=0;
|
ascii[l]=0;
|
||||||
|
|
||||||
// filter safe ascii
|
// filter safe ascii
|
||||||
for (i=0; i<l; i++)
|
for (i=0; i<l; i++) {
|
||||||
if (ascii[i] < 32 || ascii[i] > 126)
|
if (ascii[i] < 32 || ascii[i] > 126) {
|
||||||
ascii[i] = '.';
|
ascii[i] = '.';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (bAsci)
|
if (bAsci)
|
||||||
Dbprintf("%-8s %*D", ascii, l, d, " ");
|
Dbprintf("%-8s %*D", ascii, l, d, " ");
|
||||||
|
|
Loading…
Add table
Reference in a new issue