aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/exec-as.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/exec-as.c b/src/exec-as.c
index 842dc82..dcb527e 100644
--- a/src/exec-as.c
+++ b/src/exec-as.c
@@ -33,9 +33,10 @@ int main(int argc, char** argv)
}
execname = argv[0];
+ file = argv[1];
- for (i = 0; i < argc - 1; i++)
- argv[i] = argv[i + 12];
+ for (i = 0; i < argc - 2; i++)
+ argv[i] = argv[i + 2];
argv[i] = NULL;
execvp(file, argv);