Fixes for @jvoisin and @jody-frankowski

This commit is contained in:
pancake 2014-06-22 12:55:46 +02:00
parent 8efc5d64c6
commit a27a6801eb
2 changed files with 3 additions and 4 deletions

View File

@ -1057,7 +1057,7 @@ static int cmd_debug(void *data, const char *input) {
"dd", " <file>", "Open and map that file into the UI",
"dd-", "<fd>", "Close stdout fd",
"dd*", "", "List file descriptors (in radare commands)",
NLL
NULL
};
r_core_cmd_help (core, help_message);
}
@ -1205,7 +1205,7 @@ static int cmd_debug(void *data, const char *input) {
"dco", " <num>", "Step over <num> instructions",
"dcp", "", "Continue until program code (mapped io section)",
"dcr", "", "Continue until ret (uses step over)",
"dcs", " <num>"¸ "Continue until syscall",
"dcs", " <num>", "Continue until syscall",
"dct", " <len>", "Traptrace from curseek to len, no argument to list",
"dcu", " [addr]", "Continue until address",
"dcu", " <address> [end]", "Continue until given address range",

View File

@ -383,9 +383,8 @@ static int cmd_write(void *data, const char *input) {
} else
if (*str != ' ') {
char _fn[32];
char* prefix = r_config_get (core->config, "cfg.prefixdump");
const char* prefix = r_config_get (core->config, "cfg.prefixdump");
snprintf(_fn, sizeof(_fn), "%s.0x%08"PFMT64x, prefix, core->offset);
free (prefix);
filename = _fn;
} else filename = str+1;
tmp = strchr (str+1, ' ');