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

Appends backslash to CtrlDirectory (read from SBBSCTRL env var), if missing.

parent 78220433
No related branches found
No related tags found
No related merge requests found
......@@ -602,6 +602,9 @@ __fastcall TMainForm::TMainForm(TComponent* Owner)
char* p;
if((p=getenv("SBBSCTRL"))!=NULL)
CtrlDirectory=p;
char ch=*lastchar(CtrlDirectory);
if(ch!='\\' && ch!='/')
CtrlDirectory+="\\";
memset(&bbs_startup,0,sizeof(bbs_startup));
bbs_startup.size=sizeof(bbs_startup);
......
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