summaryrefslogtreecommitdiffstats
path: root/games/maelstrom/files/patch-ad
blob: 4fc0f1d16d3dd42c21563d4c3f91fd7230a29c85 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- controls.cpp.orig	Sun Jan 28 15:51:37 2001
+++ controls.cpp	Sun Jan 28 15:51:49 2001
@@ -89,7 +89,7 @@
 	if ( fname ) {
 		*fname = datafile;
 	}
-	sprintf(datafile,  "%s/%s", home, MAELSTROM_DATA);
+	snprintf(datafile, sizeof(datafile), "%s/%s", home, MAELSTROM_DATA);
 	if ( (data=fopen(datafile, mode)) == NULL )
 		return(NULL);
 	return(data);
OpenPOWER on IntegriCloud