aboutsummaryrefslogtreecommitdiff
path: root/tomo.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-16 14:29:23 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-16 14:29:23 -0400
commita9a21c40d91ea75066023854739c6a98a36c8a76 (patch)
treeb6c9802bdb52898b1ed1eac6910df167667eca2d /tomo.c
parent68c4731ae68b3d2a73c212c5bb342fe1a2d5e270 (diff)
Bugfix for arg passing
Diffstat (limited to 'tomo.c')
-rw-r--r--tomo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tomo.c b/tomo.c
index 4b72da1e..389cda8f 100644
--- a/tomo.c
+++ b/tomo.c
@@ -138,7 +138,7 @@ int main(int argc, char *argv[])
char *prog_args[num_args + 2];
prog_args[0] = exe_name;
for (int i = 0; i < num_args; i++)
- prog_args[i+1] = argv[after_flags + i];
+ prog_args[i+1] = argv[after_flags + i + 1];
prog_args[num_args+1] = NULL;
execv(exe_name, prog_args);
errx(1, "Failed to run compiled program");