Refix /j for the 3rd time, time to add a test

This commit is contained in:
pancake 2017-05-27 03:26:12 +02:00
parent e9c9221627
commit 5ca8e5e24c

View File

@ -394,8 +394,10 @@ static int __cb_hit(RSearchKeyword *kw, void *user, ut64 addr) {
if (!first_hit) {
r_cons_printf (",");
}
char *es = r_str_escape (s);
r_cons_printf ("{\"offset\": %"PFMT64d ",\"id:\":%d,\"type\":\"%s\",\"data\":\"%s\"}",
base_addr + addr, kw->kwidx, type, s);
base_addr + addr, kw->kwidx, type, es);
free (es);
} else {
r_cons_printf ("0x%08"PFMT64x " %s%d_%d %s\n",
base_addr + addr, searchprefix, kw->kwidx, kw->count, s);