Skip to content

Commit

Permalink
Add workaround for a pdf fix
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed May 15, 2017
1 parent 0327540 commit 8ccedf3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libr/core/cmd_print.c
Original file line number Diff line number Diff line change
Expand Up @@ -3523,7 +3523,8 @@ static int cmd_print(void *data, const char *input) {
}
cont_size = tmp_get_contsize (f);
#endif
r_core_cmdf (core, "pD %d @ 0x%08" PFMT64x, f->_size, f->addr);
r_core_cmdf (core, "pD %d @ 0x%08" PFMT64x,
f->_size > 0 ? f->_size: r_anal_fcn_realsize (f), f->addr);
#if 0
for (; locs_it && (tmp_func = locs_it->data); locs_it = locs_it->n) {
cont_size = tmp_get_contsize (tmp_func);
Expand Down

0 comments on commit 8ccedf3

Please sign in to comment.