mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-03 02:41:08 +00:00
Encode only non-printable chars
This commit is contained in:
parent
607491e1ce
commit
b5b548b1b3
@ -984,7 +984,7 @@ static char *r_str_escape_ (const char *buf, const int dot_nl) {
|
||||
break;
|
||||
default:
|
||||
/* Outside the ASCII printable range */
|
||||
if (*p < ' ' && *p > 0x7E) {
|
||||
if (!IS_PRINTABLE (*p)) {
|
||||
*q++ = '\\';
|
||||
*q++ = 'x';
|
||||
*q++ = '0'+((*p)>>4);
|
||||
|
Loading…
Reference in New Issue
Block a user