From 7d5899bb94441a3e1842a40da5cb61caa20899bd Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sun, 23 Oct 2011 01:48:42 +0000
Subject: [PATCH] Fix bug found by GCC on Venom's system (memset length of
 zero) when importing SIF files (whatever they are)

---
 src/sbbs3/str.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sbbs3/str.cpp b/src/sbbs3/str.cpp
index 5d36d3d65a..28e8099370 100644
--- a/src/sbbs3/str.cpp
+++ b/src/sbbs3/str.cpp
@@ -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);
-- 
GitLab