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

Use the new get_ctrl_dir() function, don't default to the cwd if the

SBBSCTRL env var isn't set (defualts to "/sbbs/ctrl" instead, like the other
utils).
parent 380a87c8
No related branches found
No related tags found
No related merge requests found
...@@ -175,11 +175,7 @@ int main(int argc, char **argv) ...@@ -175,11 +175,7 @@ int main(int argc, char **argv)
cfg.size=sizeof(cfg); cfg.size=sizeof(cfg);
memset(&uifc,0,sizeof(uifc)); memset(&uifc,0,sizeof(uifc));
p=getenv("SBBSCTRL"); SAFECOPY(cfg.ctrl_dir, get_ctrl_dir());
if(p!=NULL)
SAFECOPY(cfg.ctrl_dir,p);
else
getcwd(cfg.ctrl_dir,sizeof(cfg.ctrl_dir));
uifc.esc_delay=25; uifc.esc_delay=25;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment