argv is incorrectly set up in emx programs
Brought to you by:
em1
The following program:
int main (int argc, char *argv[])
{
printf("argc %d argv[0] %p argv[1] %p\n", argc, argv[0], argv[1])
;
return 0;
}
prints (on my Revo):
argc 1 argv[0] C:\test.exe argv[1] 0x40
which is clearly bogus: argv[1] should be NULL, since argc is 1. This
is a requirement of the standard. This is a bug which estlib doesn't
have!