File maelstrom-3.0.6-controls.cpp.patch of Package maelstrom

--- controls.cpp.orig	2001-03-24 19:04:28.000000000 +0100
+++ controls.cpp	2014-09-28 13:06:02.007417655 +0200
@@ -83,7 +83,7 @@
 	if ( fname ) {
 		*fname = datafile;
 	}
-	sprintf(datafile,  "%s"DIR_SEP"%s", home, MAELSTROM_DATA);
+	snprintf(datafile, sizeof(datafile), "%s"DIR_SEP"%s", home, MAELSTROM_DATA);
 	if ( (data=fopen(datafile, mode)) == NULL )
 		return(NULL);
 	return(data);
openSUSE Build Service is sponsored by