]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: test-net - Avoid usage of PATH_MAX
authorChristian Göttsche <cgzones@googlemail.com>
Mon, 6 Jun 2022 13:29:38 +0000 (15:29 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 25 Sep 2023 10:38:50 +0000 (13:38 +0300)
PATH_MAX is not guaranteed by to be a compile time constant,
so avoid using it.

src/lib/test-net.c

index 19887d830bb9d37c6febf5b3d4b2000bb3229775..6b31c38879e1219f6a4c4f1b5b7502b3702a8a7c 100644 (file)
@@ -181,7 +181,7 @@ static void test_net_unix_long_paths(void)
 
        test_begin("net_*_unix() - long paths");
 
-       char path[PATH_MAX];
+       char path[4096];
        memset(path, 'x', sizeof(path)-1);
        path[sizeof(path)-1] = '\0';