diff --git a/libr/core/cconfig.c b/libr/core/cconfig.c index 312e5dceba..9448418f2b 100644 --- a/libr/core/cconfig.c +++ b/libr/core/cconfig.c @@ -1711,7 +1711,7 @@ static int cb_scrstrconv(void *user, void *data) { } return false; } else { - free (core->print->strconv_mode); + free ((char *)core->print->strconv_mode); core->print->strconv_mode = strdup (node->value); } return true; diff --git a/libr/include/r_print.h b/libr/include/r_print.h index 7a57fd642d..a1407a0ded 100644 --- a/libr/include/r_print.h +++ b/libr/include/r_print.h @@ -88,7 +88,7 @@ typedef struct r_print_t { int lines_cache_sz; int lines_abs; bool esc_bslash; - char *strconv_mode; + const char *strconv_mode; // when true it uses row_offsets bool calc_row_offsets;