Commit 01009dda authored by rswindell's avatar rswindell
Browse files

Address Coverity-reported issue (buffer overrun).

parent d16ffc72
......@@ -44,7 +44,7 @@
/****************************************************************************/
void sbbs_t::downloadfile(file_t* f)
{
char str[256],fname[13];
char str[MAX_PATH+1],fname[13];
char tmp[512];
int i,file;
long mod;
......
......@@ -150,7 +150,7 @@ bool sbbs_t::email(int usernumber, const char *top, const char *subj, long mode)
for(x=0;x<cfg.total_prots;x++)
if(cfg.prot[x]->ulcmd[0] && chk_ar(cfg.prot[x]->ar,&useron,&client)) {
sprintf(tmp,"%c",cfg.prot[x]->mnemonic);
strcat(str,tmp);
SAFECAT(str,tmp);
}
ch=(char)getkeys(str,0);
if(ch==text[YNQP][2] || sys_status&SS_ABORT) {
......
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