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

If the Ctrl-A" code contains an empty/bogus filename, don't try to display

it. This Ctrl-A code is dubious and perhaps should just be removed.
parent ff318e83
Branches
Tags
No related merge requests found
......@@ -83,11 +83,13 @@ char sbbs_t::putmsg(const char *buf, long mode)
i=0;
while(i<(int)sizeof(tmp2)-1 && isprint((unsigned char)str[l]) && str[l]!='\\' && str[l]!='/')
tmp2[i++]=str[l++];
tmp2[i]=0;
sys_status|=SS_NEST_PF; /* keep it only one message deep! */
SAFEPRINTF2(tmp3,"%s%s",cfg.text_dir,tmp2);
printfile(tmp3,0);
sys_status&=~SS_NEST_PF;
if(i > 0) {
tmp2[i]=0;
sys_status|=SS_NEST_PF; /* keep it only one message deep! */
SAFEPRINTF2(tmp3,"%s%s",cfg.text_dir,tmp2);
printfile(tmp3,0);
sys_status&=~SS_NEST_PF;
}
}
else {
ctrl_a(str[l+1]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment