(main): Change argv[i] to argv[0][i].
From-SVN: r12282
This commit is contained in:
parent
fe628d0932
commit
a36cf2bb43
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user