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

Remove some useless cruft that appears to be leftover from the time when help

files were external to the executable (to conserve that precious 640KB of RAM!)
Some more use of SAFEPRINTF for good mesaure.
parent 40c5fdd2
No related branches found
No related tags found
No related merge requests found
......@@ -431,26 +431,13 @@ int main(int argc, char **argv)
if((mopt[i]=(char *)malloc(64))==NULL)
allocfail(64);
if((p=getenv("SBBSEXEC"))!=NULL)
SAFECOPY(str,p);
else {
SAFECOPY(str,exepath);
p=strrchr(str,'/');
if(p==NULL)
p=strrchr(str,'\\');
if(p!=NULL)
*p=0;
else
sprintf(str,"%s../exec",cfg.ctrl_dir);
}
sprintf(str,"Synchronet for %s v%s",PLATFORM_DESC,VERSION);
SAFEPRINTF2(str,"Synchronet for %s v%s",PLATFORM_DESC,VERSION);
if(uifc.scrn(str)) {
printf(" USCRN (len=%d) failed!\n",uifc.scrn_len+1);
bail(1);
}
sprintf(str,"%smain.cnf",cfg.ctrl_dir);
SAFEPRINTF(str,"%smain.cnf",cfg.ctrl_dir);
if(!fexist(str)) {
sprintf(errormsg,"Main configuration file (%s) missing!",str);
uifc.msg(errormsg);
......
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