r5254 - trunk/varnish-cache/bin/varnishtest
phk at varnish-cache.org
phk at varnish-cache.org
Wed Sep 22 12:07:32 CEST 2010
Author: phk
Date: 2010-09-22 12:07:32 +0200 (Wed, 22 Sep 2010)
New Revision: 5254
Modified:
trunk/varnish-cache/bin/varnishtest/vtc.c
Log:
Give length to getcwd()
Modified: trunk/varnish-cache/bin/varnishtest/vtc.c
===================================================================
--- trunk/varnish-cache/bin/varnishtest/vtc.c 2010-09-22 09:58:29 UTC (rev 5253)
+++ trunk/varnish-cache/bin/varnishtest/vtc.c 2010-09-22 10:07:32 UTC (rev 5254)
@@ -657,7 +657,7 @@
AZ(mkdir(vtc_tmpdir, 0700));
macro_def(vltop, NULL, "tmpdir", vtc_tmpdir);
- cwd = getcwd(NULL, 0);
+ cwd = getcwd(NULL, PATH_MAX);
bprintf(topbuild, "%s/%s", cwd, TOP_BUILDDIR);
macro_def(vltop, NULL, "topbuild", topbuild);
More information about the varnish-commit
mailing list