shithub: riscv

Download patch

ref: 826c76f90df66a9b20a3cf279bfb47d4d27322af
parent: 76ed5d2e4b0279eea6dd6e3ddb03690d027b059d
author: aiju <devnull@localhost>
date: Tue Jan 7 21:27:09 EST 2020

dumb bug

--- a/sys/src/cmd/aux/aout2uimage.c
+++ b/sys/src/cmd/aux/aout2uimage.c
@@ -121,7 +121,7 @@
 	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");