master hovercats/oakiss / pkg / wpa_supplicant / patch / 0002-Avoid-unnecessary-VLA.patch
 1From 9573da0c85c0b03fe3f11d417af280bca27ecc6b Mon Sep 17 00:00:00 2001
 2From: Michael Forney <mforney@mforney.org>
 3Date: Sun, 11 Aug 2019 03:44:24 +0000
 4Subject: [PATCH] Avoid unnecessary VLA
 5
 6---
 7 src/utils/os_unix.c | 2 +-
 8 1 file changed, 1 insertion(+), 1 deletion(-)
 9
10diff --git a/src/utils/os_unix.c b/src/utils/os_unix.c
11index 679f3a0dc..aca086c22 100644
12--- a/src/utils/os_unix.c
13+++ b/src/utils/os_unix.c
14@@ -831,7 +831,7 @@ int os_exec(const char *program, const char *arg, int wait_completion)
15 
16 	if (pid == 0) {
17 		/* run the external command in the child process */
18-		const int MAX_ARG = 30;
19+		enum { MAX_ARG = 30 };
20 		char *_program, *_arg, *pos;
21 		char *argv[MAX_ARG + 1];
22 		int i;
23-- 
242.45.2
25