From 699ddb5f2f4d2a85f23cdae3560898b2b6798812 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sun, 27 Feb 2022 10:07:45 -0500 Subject: Seems nicer --- src/vox.c | 6 ++---- 1 file 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) { -- cgit v1.2.3