mirror of
https://github.com/jakcron/nstool
synced 2024-11-22 21:49:30 +00:00
[fnd] Fix SimpleTextOutput::hxdStyleOutput()
This commit is contained in:
parent
556434b0d5
commit
3363d9152a
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ void fnd::SimpleTextOutput::hxdStyleDump(const byte_t* data, size_t len, size_t
|
||||||
printf(" ");
|
printf(" ");
|
||||||
for (size_t j = 0; j < row_len; j++)
|
for (size_t j = 0; j < row_len; j++)
|
||||||
{
|
{
|
||||||
printf("%c", isalnum(data[(i * row_len) + j]) ? data[(i * row_len) + j] : '.');
|
printf("%c", iscntrl(data[(i * row_len) + j]) ? '.' : data[(i * row_len) + j]);
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ void fnd::SimpleTextOutput::hxdStyleDump(const byte_t* data, size_t len, size_t
|
||||||
for (size_t j = 0; j < row_len; j++)
|
for (size_t j = 0; j < row_len; j++)
|
||||||
{
|
{
|
||||||
if (j < (len % row_len))
|
if (j < (len % row_len))
|
||||||
printf("%c", isalnum(data[(i * row_len) + j]) ? data[(i * row_len) + j] : '.');
|
printf("%c", iscntrl(data[(i * row_len) + j]) ? '.' : data[(i * row_len) + j]);
|
||||||
else
|
else
|
||||||
printf(" ");
|
printf(" ");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue