First post, by ripsaw8080
- Rank
- DOSBox Author
I'm getting an exception when executing a CONFIG command with any parameter specified. I traced it to a FOR instruction in GetParameterFromList()
for(Bitu i = 0; params[i]!=""; i++) {
The loop is not ending on the last element, so it tries to process past the end of the array. I thought the empty string might be an issue, but changing the last element to some string value like "endlist" and testing for that still doesn't end the loop. Maybe a bug in the version of GCC I'm using, but this works:
for(Bitu i = 0; strlen(params[i])>0; i++) {