From 5debf5d8e5debc0d1c53a5a493fade79f51fecf5 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 2 Dec 2015 05:31:16 +0100 Subject: derp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/exec-as.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/exec-as.c') 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); -- cgit v1.2.3-70-g09d2