diff options
Diffstat (limited to 'pkg/wpa_supplicant/patch/0002-Avoid-unnecessary-VLA.patch')
| -rw-r--r-- | pkg/wpa_supplicant/patch/0002-Avoid-unnecessary-VLA.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/wpa_supplicant/patch/0002-Avoid-unnecessary-VLA.patch b/pkg/wpa_supplicant/patch/0002-Avoid-unnecessary-VLA.patch new file mode 100644 index 00000000..fdca3e5a --- /dev/null +++ b/pkg/wpa_supplicant/patch/0002-Avoid-unnecessary-VLA.patch @@ -0,0 +1,25 @@ +From 9573da0c85c0b03fe3f11d417af280bca27ecc6b Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Sun, 11 Aug 2019 03:44:24 +0000 +Subject: [PATCH] Avoid unnecessary VLA + +--- + src/utils/os_unix.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/utils/os_unix.c b/src/utils/os_unix.c +index 679f3a0dc..aca086c22 100644 +--- a/src/utils/os_unix.c ++++ b/src/utils/os_unix.c +@@ -831,7 +831,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; ++ enum { MAX_ARG = 30 }; + char *_program, *_arg, *pos; + char *argv[MAX_ARG + 1]; + int i; +-- +2.45.2 + |
