From 1d3df40c0cc5037cfcb56127d2fa6c1d186afacf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Felipe=20Melchor?= Date: Sun, 4 Oct 2015 16:45:31 +0200 Subject: [PATCH] Fix dbg.args for linux --- libr/io/p/io_debug.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libr/io/p/io_debug.c b/libr/io/p/io_debug.c index 468191006d..49a1bf0cc7 100644 --- a/libr/io/p/io_debug.c +++ b/libr/io/p/io_debug.c @@ -332,7 +332,9 @@ static int fork_and_ptraceme(RIO *io, int bits, const char *cmd) { r_str_argv_free (argv); exit (1); } else { - char *_cmd = strdup (cmd); + char *_cmd = io->args ? + r_str_concatf (strdup (cmd), " %s", io->args) : + strdup (cmd); argv = r_str_argv (_cmd, NULL); if (!argv) { free (_cmd);