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

PATH_MAX (not an MSVC thing) -> MAX_PATH

parent 68514d3f
No related branches found
No related tags found
No related merge requests found
Pipeline #5533 passed
......@@ -1456,7 +1456,7 @@ int main(int argc, char **argv, char** env)
strcpy(scfg.sys_inetaddr, "example.com");
scfg.prepped = true;
#else
char relpath[PATH_MAX + 1];
char relpath[MAX_PATH + 1];
SAFECOPY(relpath, scfg.ctrl_dir);
FULLPATH(scfg.ctrl_dir, relpath, sizeof scfg.ctrl_dir);
if(change_cwd && chdir(scfg.ctrl_dir)!=0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment