mirror of
https://github.com/oasislinux/oasis.git
synced 2026-10-04 12:07:12 +02:00
26 lines
714 B
Diff
26 lines
714 B
Diff
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
|
|
|