Skip to content

Commit

Permalink
Fix: remove again ascii control codes in json output
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanpencil authored and radare committed Aug 4, 2018
1 parent f4005b8 commit 69a26bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libr/core/disasm.c
Expand Up @@ -472,7 +472,7 @@ static void ds_comment(RDisasmState *ds, bool align, const char *format, ...) {
} else {
char buffer[4096];
vsnprintf (buffer, sizeof(buffer), format, ap);
char *escstr = r_str_escape_latin1 (buffer, false, true, false);
char *escstr = r_str_escape_latin1 (buffer, false, true, true);
if (escstr) {
r_cons_printf ("%s", escstr);
free (escstr);
Expand Down
2 changes: 1 addition & 1 deletion libr/util/str.c
Expand Up @@ -1259,7 +1259,7 @@ R_API char *r_str_escape_dot(const char *buf) {
}

R_API char *r_str_escape_latin1(const char *buf, bool show_asciidot, bool esc_bslash, bool colors) {
return r_str_escape_ (buf, false, false, !colors, show_asciidot, esc_bslash);
return r_str_escape_ (buf, false, colors, !colors, show_asciidot, esc_bslash);
}

static char *r_str_escape_utf(const char *buf, int buf_size, RStrEnc enc, bool show_asciidot, bool esc_bslash) {
Expand Down

0 comments on commit 69a26bb

Please sign in to comment.