Skip to content

Make the argv strings mutable on Redox

As per the C standard:

The parameters argc and argv and the strings pointed to by the argv array shall be modifiable by the program, and retain their last-stored values between program startup and program termination.

The argv strings in the main function seems to be mapped as read only on Redox, modifying them causes page faults. Needed by OpenTTD.

Edited by Nagy Tibor