Workaround for newer glibc

This commit is contained in:
n-a-c-h
2004-11-04 11:31:05 +00:00
parent d635bd68ad
commit db782fab40

View File

@@ -339,15 +339,14 @@ printf("Hello the gui should now be off.");
}
/* execute rom filename: file.x */
if (optopt == '?')
/* getopt permutates argv until all non options are at the end of argv. */
/* since we only expect one non option, it should be the last argument. */
if ( optind == argc - 1 && argv[optind] != NULL)
{
if (argv[optind] != NULL)
{
fvar=&fname;
fvar[0] = strlen(argv[optind]);
strncpy(&fvar[1], argv[optind],127);
makeextension();
}
fvar=&fname;
fvar[0] = strlen(argv[optind]);
strncpy(&fvar[1], argv[optind],127);
makeextension();
}
zstart();