summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vox.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/vox.c b/src/vox.c
index 5cfc9d0..e49510e 100644
--- a/src/vox.c
+++ b/src/vox.c
@@ -129,10 +129,8 @@ static int vox_start(xas_vox *vox) {
snprintf(sample_rate, sizeof(sample_rate)-1, "%zu", vox->format.sample_rate);
if (vox->tmpfile[0] && vox->tmpfd > 0) {
- args[6] = "-eval";
- args[7] = vox->tmpfile;
-
- argn += 2;
+ args[argn++] = "-eval";
+ args[argn++] = vox->tmpfile;
}
if ((argv = args_concat(argn, args, vox->argn, vox->args, &argc)) == NULL) {