make ood use absolute path

fixes #3255
Reopening a file in debug mode with 'ood' does not work #3255
This commit is contained in:
Jeffrey Crowell 2015-09-14 20:46:08 -04:00
parent b86bf19c85
commit e973deadca

View File

@ -205,7 +205,7 @@ static void reopen_in_debug(RCore *core) {
r_core_cmd0 (core, "oo");
} else {
int bits = core->assembler->bits;
const char *oldname = core->file->desc->uri;
const char *oldname = r_file_abspath (core->file->desc->uri);
char *newfile = r_str_newf ("dbg://%s", oldname);
core->file->desc->uri = newfile;
core->file->desc->referer = NULL;