Add support to multiline assembly patching (#13526)

For example, this line 'OFFSET : nop;nop;nop' (provided in the example patchfile at binr/rabin2/patch.txt) now actually works
This commit is contained in:
guy-gal 2019-03-28 11:05:51 +02:00 committed by radare
parent d271da09ab
commit c68988dc50

View File

@ -24,7 +24,7 @@ R_API int r_core_patch_line (RCore *core, char *str) {
break;
case ':':
r_core_cmdf (core, "s %s", str);
r_core_cmdf (core, "wa %s", p);
r_core_cmdf (core, "\"wa %s\"", p);
break;
case 'v':
q = strchr (p + 1,' ');