Bring -w- to malloc temporary

This commit is contained in:
alvarofe 2017-08-25 15:24:38 +02:00
parent f129316701
commit 4701a89b63

View File

@ -774,6 +774,9 @@ R_API RCoreFile *r_core_file_open(RCore *r, const char *file, int flags, ut64 lo
if (!flags) {
flags = R_IO_READ;
}
if (strstr (file, "malloc://")) {
flags = R_IO_READ | R_IO_WRITE;
}
r->io->bits = r->assembler->bits; // TODO: we need an api for this
fd = r_io_open_nomap (r->io, file, flags, 0644);
if (!fd && openmany > 2) {