Skip to content
Snippets Groups Projects
Commit 888151fa authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

PATH_MAX (not an MSVC thing) -> MAX_PATH

parent 9d44fb7c
Branches
Tags
1 merge request!455Update branch with changes from master
...@@ -1456,7 +1456,7 @@ int main(int argc, char **argv, char** env) ...@@ -1456,7 +1456,7 @@ int main(int argc, char **argv, char** env)
strcpy(scfg.sys_inetaddr, "example.com"); strcpy(scfg.sys_inetaddr, "example.com");
scfg.prepped = true; scfg.prepped = true;
#else #else
char relpath[PATH_MAX + 1]; char relpath[MAX_PATH + 1];
SAFECOPY(relpath, scfg.ctrl_dir); SAFECOPY(relpath, scfg.ctrl_dir);
FULLPATH(scfg.ctrl_dir, relpath, sizeof scfg.ctrl_dir); FULLPATH(scfg.ctrl_dir, relpath, sizeof scfg.ctrl_dir);
if(change_cwd && chdir(scfg.ctrl_dir)!=0) if(change_cwd && chdir(scfg.ctrl_dir)!=0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment