Module Name: src Committed By: christos Date: Fri Oct 17 02:57:42 UTC 2014
Modified Files: src/external/bsd/wpa/dist/src/utils: os_unix.c Log Message: avoid variable array allocation that gcc can't figure out. To generate a diff of this commit: cvs rdiff -u -r1.1.1.5 -r1.2 src/external/bsd/wpa/dist/src/utils/os_unix.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/wpa/dist/src/utils/os_unix.c diff -u src/external/bsd/wpa/dist/src/utils/os_unix.c:1.1.1.5 src/external/bsd/wpa/dist/src/utils/os_unix.c:1.2 --- src/external/bsd/wpa/dist/src/utils/os_unix.c:1.1.1.5 Thu Oct 16 15:16:08 2014 +++ src/external/bsd/wpa/dist/src/utils/os_unix.c Thu Oct 16 22:57:42 2014 @@ -570,7 +570,7 @@ int os_exec(const char *program, const c 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;