From: Jason Self Date: Sat, 19 Sep 2015 04:18:38 +0000 (-0700) Subject: zilasm/main: Bugfix output_file assignment. X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=401614e8f9e8e1d29ccbf64fbc99e3cdd3e37570;p=zilutils.git zilasm/main: Bugfix output_file assignment. --- diff --git a/zilasm/main.c b/zilasm/main.c index ab2a633..811a6df 100644 --- a/zilasm/main.c +++ b/zilasm/main.c @@ -160,7 +160,7 @@ int main(int argc, char *argv[], char *envp[]) print_version(); case 'o' : if (output_file) wrong_arg("Output file must be given once\n"); - output_file = argv[optind]; + output_file = optarg; break; case ZVERSION: parse_intarg(&Config.zversion, "zversion", 1, 8, 1);