]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Fixed bug-3507 - incorrect dereference of argv when performing variable interpolation
authorDiego Rivera <diego.rivera.cr@gmail.com>
Mon, 1 Feb 2016 20:15:58 +0000 (14:15 -0600)
committerJaroslav Kysela <perex@perex.cz>
Mon, 1 Feb 2016 20:51:00 +0000 (21:51 +0100)
src/spawn.c

index bb0edeaf3891a7488003e12c5079a02faef00121..d5cd9fa3f453f25ea74bd46e8aa25c4f05ed29bc 100644 (file)
@@ -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;
         }
       }