Commit a36cf2bb by Jim Wilson

(main): Change argv[i] to argv[0][i].

From-SVN: r12282
parent fe628d09
......@@ -65,8 +65,8 @@ main (argc, argv)
int i, i0;
i = strlen (argv[0]);
while (i > 0 && argv[i-1] != '/') --i;
progname = &argv[i];
while (i > 0 && argv[0][i-1] != '/') --i;
progname = &argv[0][i];
fprintf (outf, "struct fn_decl std_protos[] = {\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment