summaryrefslogtreecommitdiffstats
path: root/network/varnish/0051cbe3b9cc24586e0ad99cff72041c6df944b8.patch
blob: a1cc4e65dde90e4b9dce05a9ed367f99143be3e7 (plain)
From 0051cbe3b9cc24586e0ad99cff72041c6df944b8 Mon Sep 17 00:00:00 2001
From: Poul-Henning Kamp <phk@FreeBSD.org>
Date: Thu, 15 Oct 2020 07:35:04 +0000
Subject: [PATCH] Import from VTest: Don't use explicit buffer size with no
 buffer

---
 bin/varnishtest/vtc_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/varnishtest/vtc_main.c b/bin/varnishtest/vtc_main.c
index 1deea4ab78..3c3887450c 100644
--- a/bin/varnishtest/vtc_main.c
+++ b/bin/varnishtest/vtc_main.c
@@ -698,7 +698,7 @@ main(int argc, char * const *argv)
 	else
 		tmppath = strdup("/tmp");
 
-	cwd = getcwd(NULL, PATH_MAX);
+	cwd = getcwd(NULL, 0);
 	extmacro_def("pwd", "%s", cwd);
 
 	vmod_path = NULL;