Parcourir la source

PATH_MAX is not defined on some Linux systems.

Adam Ierymenko il y a 4 ans
Parent
commit
c86418934c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      one.cpp

+ 1 - 1
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);