-
-
Save anonymous/3d8536e736289963d15f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/io/procops.c b/src/io/procops.c | |
index 25b4950..823c5a3 100644 | |
--- a/src/io/procops.c | |
+++ b/src/io/procops.c | |
@@ -124,7 +124,7 @@ MVMint64 MVM_proc_spawn(MVMThreadContext *tc, MVMString *cmd, MVMString *cwd, MV | |
#else | |
char sh[] = "/bin/sh"; | |
args[0] = sh; | |
- args[1] = "-c"; | |
+ args[1] = (char *)"-c"; | |
args[2] = cmdin; | |
args[3] = NULL; | |
#endif | |
@@ -150,7 +150,7 @@ MVMint64 MVM_proc_spawn(MVMThreadContext *tc, MVMString *cmd, MVMString *cwd, MV | |
free(cmdin); | |
i = 0; | |
while(_env[i]) | |
- free(_env[i++]); | |
+ free((void *)_env[i++]); | |
free(_env); |
FROGGS
commented
Sep 4, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment