PATH_MAX is not defined on some Linux systems.

This commit is contained in:
Adam Ierymenko 2020-09-23 22:06:22 -04:00
parent 70efa5f606
commit c86418934c

View File

@ -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);