Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit a4d65f81 authored by rswindell's avatar rswindell

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
......@@ -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]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment