aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-04-03 17:43:36 +0200
committerMattias Andrée <maandree@operamail.com>2015-04-03 17:43:36 +0200
commit74b737c89d76688d0b9848d43e435bb797973c61 (patch)
treefb746873ee3fc3357cf2d20136e96d2a383fb785
parentadd makefile (diff)
downloadexec-as-74b737c89d76688d0b9848d43e435bb797973c61.tar.gz
exec-as-74b737c89d76688d0b9848d43e435bb797973c61.tar.bz2
exec-as-74b737c89d76688d0b9848d43e435bb797973c61.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--src/exec-as.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exec-as.c b/src/exec-as.c
index d6c4b15..8224cff 100644
--- a/src/exec-as.c
+++ b/src/exec-as.c
@@ -27,12 +27,12 @@ int main(int argc, char** argv)
if (argc < 3)
{
- fprintf(stderr, "%s: %s", execname,
+ fprintf(stderr, "%s: %s", argc ? argv[0] : "exec-as",
"Too few arguments, you need atleast "
"the file to run and its argv[0].");
goto fail;
}
-
+
execname = argv[0];
file = argv[1];