mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
Allow new lines and carriage returns for ASCII format output, but do not allow char 127.
This commit is contained in:
parent
d155287638
commit
2dde26104b
@ -46,7 +46,7 @@ print_binary(int level,
|
||||
|
||||
ascii_only = true;
|
||||
for (i = 0; i < size; i++)
|
||||
if ((p[i] < ' ') || (p[i] > 127)) {
|
||||
if ((p[i] != '\n') && (p[i] != '\r') && ((p[i] < ' ') || (p[i] >= 127))) {
|
||||
ascii_only = false;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user