mirror of https://github.com/OpenRCT2/OpenRCT2.git
fix warnings in cmdline.c
This commit is contained in:
parent
8bfde1f948
commit
de48ad3af6
|
@ -96,7 +96,7 @@ int cmdline_run(const char **argv, int argc)
|
||||||
* a null pointer in the array. Because of this, AppKit in OS X 10.10 will
|
* a null pointer in the array. Because of this, AppKit in OS X 10.10 will
|
||||||
* dereference it, causing a segmentation fault.
|
* dereference it, causing a segmentation fault.
|
||||||
*/
|
*/
|
||||||
const char** mutableArgv = malloc(argvsize);
|
char** mutableArgv = malloc(argvsize);
|
||||||
memcpy(mutableArgv,argv,argvsize);
|
memcpy(mutableArgv,argv,argvsize);
|
||||||
argc = argparse_parse(&argparse, argc, mutableArgv);
|
argc = argparse_parse(&argparse, argc, mutableArgv);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue