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

From-SVN: r12282
This commit is contained in:
Jim Wilson 1996-06-13 17:21:26 -07:00
parent fe628d0932
commit a36cf2bb43

View File

@ -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");