mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 12:33:44 +02:00
PATH_MAX is not defined on some Linux systems.
This commit is contained in:
parent
70efa5f606
commit
c86418934c
1 changed files with 1 additions and 1 deletions
2
one.cpp
2
one.cpp
|
@ -1171,7 +1171,7 @@ static int cli(int argc,char **argv)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
close(sock);
|
close(sock);
|
||||||
char cwd[PATH_MAX];
|
char cwd[16384];
|
||||||
getcwd(cwd, sizeof(cwd));
|
getcwd(cwd, sizeof(cwd));
|
||||||
sprintf(cwd, "%s%szerotier_dump.txt", cwd, ZT_PATH_SEPARATOR_S);
|
sprintf(cwd, "%s%szerotier_dump.txt", cwd, ZT_PATH_SEPARATOR_S);
|
||||||
fprintf(stdout, "Writing dump to: %s\n", cwd);
|
fprintf(stdout, "Writing dump to: %s\n", cwd);
|
||||||
|
|
Loading…
Add table
Reference in a new issue