logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0002-Avoid-unnecessary-VLA.patch (714B)


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