mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
fix: sprint_bin_break doesn't skip bits when newline printing
This commit is contained in:
parent
8fb0999e05
commit
800bce865d
1 changed files with 2 additions and 2 deletions
|
@ -256,12 +256,12 @@ char *sprint_bin_break(const uint8_t *data, const size_t len, const uint8_t brea
|
||||||
sprintf(tmp++, ".");
|
sprintf(tmp++, ".");
|
||||||
else
|
else
|
||||||
sprintf(tmp++, "%u", data[in_index]);
|
sprintf(tmp++, "%u", data[in_index]);
|
||||||
|
|
||||||
// check if a line break is needed and we have room to print it in our array
|
// check if a line break is needed and we have room to print it in our array
|
||||||
if ((breaks > 0) && !((in_index + 1) % breaks) && (out_index + 1 != rowlen)) {
|
if ((breaks > 0) && !((in_index + 1) % breaks) && (out_index + 1 != rowlen)) {
|
||||||
// increment and print line break
|
|
||||||
out_index++;
|
|
||||||
sprintf(tmp++, "%s", "\n");
|
sprintf(tmp++, "%s", "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
in_index++;
|
in_index++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue