mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07: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;
|
||||
|
||||
// filter safe ascii
|
||||
for (i=0; i<l; i++)
|
||||
if (ascii[i] < 32 || ascii[i] > 126)
|
||||
for (i=0; i<l; i++) {
|
||||
if (ascii[i] < 32 || ascii[i] > 126) {
|
||||
ascii[i] = '.';
|
||||
}
|
||||
}
|
||||
|
||||
if (bAsci)
|
||||
Dbprintf("%-8s %*D", ascii, l, d, " ");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue