These string variables were being used uninitialized, causing me to get spurious errors due to random garbage, like:
$ prodos -t BIN -a 0x6000 VIMODE-PRODOS.dsk SAVE VIMODE
Error! not found!
Error, couldn't open directory (null)
$ prodos -t BIN -a 0x6000 VIMODE-PRODOS.dsk SAVE VIMODE
Error! 9 not found!
Error, couldn't open directory (null)
$ prodos -t BIN -a 0x6000 VIMODE-PRODOS.dsk SAVE VIMODE
Error! @ not found!
Error, couldn't open directory (null)
$
Et cetera. Adding {} initializers resolved the issue for me (and allowed the above command to complete successfully).
I experienced this issue on Mac OS. I did not experience this on Ubuntu, either because I was lucky, or more likely the memory was already cleared to zero before main() is entered.
These string variables were being used uninitialized, causing me to get spurious errors due to random garbage, like:
Et cetera. Adding {} initializers resolved the issue for me (and allowed the above command to complete successfully).
I experienced this issue on Mac OS. I did not experience this on Ubuntu, either because I was lucky, or more likely the memory was already cleared to zero before
main()
is entered.