Skip to content
Snippets Groups Projects
Commit e0544f7d authored by rswindell's avatar rswindell
Browse files

Added backslash to ctrl_path *after* getting real path.

parent 315eab0e
No related branches found
No related tags found
No related merge requests found
......@@ -183,8 +183,6 @@ int main(int argc, char **argv)
SAFECOPY(cfg.ctrl_dir,argv[i]);
}
backslashcolon(cfg.ctrl_dir);
FULLPATH(exepath,argv[0],sizeof(exepath)); /* Must do this before chdir */
if(chdir(cfg.ctrl_dir)!=0) {
......@@ -193,6 +191,7 @@ if(chdir(cfg.ctrl_dir)!=0) {
exit(-1);
}
FULLPATH(cfg.ctrl_dir,".",sizeof(cfg.ctrl_dir));
backslashcolon(cfg.ctrl_dir);
uifc.size=sizeof(uifc);
#if defined(USE_FLTK)
......
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