Skip to content

Commit 99e348e

Browse files
jeffhostetlerdscho
authored andcommitted
msvc: mark a variable as non-const
VS2015 complains when using a const pointer in memcpy()/free(). Signed-off-by: Jeff Hostetler <[email protected]>
1 parent 4b7104f commit 99e348e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compat/mingw.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1622,7 +1622,10 @@ static int try_shell_exec(const char *cmd, char *const *argv)
16221622
prog = path_lookup(interpr, 1);
16231623
if (prog) {
16241624
int argc = 0;
1625-
const char **argv2;
1625+
#ifndef _MSC_VER
1626+
const
1627+
#endif
1628+
char **argv2;
16261629
while (argv[argc]) argc++;
16271630
ALLOC_ARRAY(argv2, argc + 1);
16281631
argv2[0] = (char *)cmd; /* full path to the script file */

0 commit comments

Comments
 (0)