]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tests: remove VLAs
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 26 Jul 2018 11:38:11 +0000 (13:38 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 26 Jul 2018 14:38:42 +0000 (16:38 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/tests/mount_injection.c

index 7eef3c930846c78caf3982c4953772bf467a0e48..3d58b9c3ffd3c6496c38e2e1d5d20b15498a6f0a 100644 (file)
@@ -17,7 +17,6 @@
  */
 
 
-#define _GNU_SOURCE
 #include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -30,6 +29,7 @@
 #include <sys/types.h>
 #include <unistd.h>
 
+#include "config.h"
 #include "lxctest.h"
 #include "utils.h"
 
@@ -145,9 +145,9 @@ static int perform_container_test(const char *name, const char *config_items[])
        int i;
        char *sret;
        char template_log[sizeof(TEMPLATE)], template_dir[sizeof(TEMPLATE)],
-                       device_message[sizeof("Check urandom device injected into "" - ") - 1 + strlen(name) + 1],
-                       dir_message[sizeof("Check dir "" injected into "" - ") - 1 + sizeof(TEMPLATE) - 1 + strlen(name) + 1],
-                       fs_message[sizeof("Check devtmpfs injected into "" - ") - 1 + strlen(name) + 1];
+                       device_message[4096],
+                       dir_message[4096],
+                       fs_message[4096];
        struct lxc_container *c;
        struct lxc_mount mnt;
        struct lxc_log log;