summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/aux/aout2uimage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/aux/aout2uimage.c b/sys/src/cmd/aux/aout2uimage.c
index 8898a6df7..b8b39e134 100644
--- a/sys/src/cmd/aux/aout2uimage.c
+++ b/sys/src/cmd/aux/aout2uimage.c
@@ -121,7 +121,7 @@ main(int argc, char **argv)
if(iname != nil)
iname++;
else
- iname = argv[1];
+ iname = argv[0];
if(ofile == nil) ofile = smprint("%s.u", iname);
outfd = create(ofile, OWRITE|OTRUNC, 0666);
if(outfd < 0) sysfatal("create: %r");