avoid variable array allocation that gcc can't figure out.

This commit is contained in:
christos 2014-10-17 02:57:42 +00:00
parent 3f1a82be7e
commit fe1a092fc9
1 changed files with 1 additions and 1 deletions

View File

@ -570,7 +570,7 @@ int os_exec(const char *program, const char *arg, int wait_completion)
if (pid == 0) {
/* run the external command in the child process */
const int MAX_ARG = 30;
#define MAX_ARG 30
char *_program, *_arg, *pos;
char *argv[MAX_ARG + 1];
int i;