From: Christian Göttsche Date: Mon, 6 Jun 2022 13:29:38 +0000 (+0200) Subject: lib: test-net - Avoid usage of PATH_MAX X-Git-Tag: 2.4.0~2581 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e459141dd2f7513850e5910bcd034a072adad67f;p=thirdparty%2Fdovecot%2Fcore.git lib: test-net - Avoid usage of PATH_MAX PATH_MAX is not guaranteed by to be a compile time constant, so avoid using it. --- diff --git a/src/lib/test-net.c b/src/lib/test-net.c index 19887d830b..6b31c38879 100644 --- a/src/lib/test-net.c +++ b/src/lib/test-net.c @@ -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';