blob: fdca3e5a152faea0496c489e83ade05fa24edba6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|