From c86418934c481d8c51ac7330cabc26c969ed4f1c Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 23 Sep 2020 22:06:22 -0400 Subject: [PATCH] PATH_MAX is not defined on some Linux systems. --- one.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/one.cpp b/one.cpp index 82a1cd65..9d28b7c3 100644 --- a/one.cpp +++ b/one.cpp @@ -1171,7 +1171,7 @@ static int cli(int argc,char **argv) } } close(sock); - char cwd[PATH_MAX]; + char cwd[16384]; getcwd(cwd, sizeof(cwd)); sprintf(cwd, "%s%szerotier_dump.txt", cwd, ZT_PATH_SEPARATOR_S); fprintf(stdout, "Writing dump to: %s\n", cwd);