Skip to content
Snippets Groups Projects
Commit 7d5899bb authored by deuce's avatar deuce
Browse files

Fix bug found by GCC on Venom's system (memset length of zero) when importing

SIF files (whatever they are)
parent 763a1c9a
Branches
Tags
No related merge requests found
......@@ -440,7 +440,7 @@ void sbbs_t::create_sif_dat(char *siffile, char *datfile)
errormsg(WHERE,ERR_ALLOC,siffile,SIF_MAXBUF);
return;
}
memset(buf,SIF_MAXBUF,0); /* initialize to null */
memset(buf,0,SIF_MAXBUF); /* initialize to null */
sif(siffile,buf,SIF_MAXBUF);
if((file=nopen(datfile,O_WRONLY|O_TRUNC|O_CREAT))==-1) {
free(buf);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment