From: Diego Rivera Date: Mon, 1 Feb 2016 20:15:58 +0000 (-0600) Subject: Fixed bug-3507 - incorrect dereference of argv when performing variable interpolation X-Git-Tag: v4.2.1~1093 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f785357e8c9f89bef765de6a03198b2199df5c80;p=thirdparty%2Ftvheadend.git Fixed bug-3507 - incorrect dereference of argv when performing variable interpolation --- diff --git a/src/spawn.c b/src/spawn.c index bb0edeaf3..d5cd9fa3f 100644 --- a/src/spawn.c +++ b/src/spawn.c @@ -414,7 +414,7 @@ spawn_parse_args(char ***argv, int argc, const char *cmd, const char **replace) strcpy(a, f); strcat(a, r[1]); strcat(a, p + l); - *argv[i++] = a; + (*argv)[i++] = a; break; } }