Skip to content
Snippets Groups Projects
Commit d5f6bff0 authored by deuce's avatar deuce
Browse files

Only search argv[0] for the help files for Win32.

parent efe973ec
No related branches found
No related tags found
No related merge requests found
......@@ -217,7 +217,11 @@ int main(int argc, char **argv)
SAFECOPY(cfg.ctrl_dir,argv[i]);
}
#ifdef _WIN32
FULLPATH(exepath,argv[0],sizeof(exepath)); /* Must do this before chdir */
#else
exepath[0]=0;
#endif
if(chdir(cfg.ctrl_dir)!=0) {
printf("!ERROR %d changing current directory to: %s\n"
......
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