aboutsummaryrefslogtreecommitdiff
path: root/network/varnish/0051cbe3b9cc24586e0ad99cff72041c6df944b8.patch
blob: a1cc4e65dde90e4b9dce05a9ed367f99143be3e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;