aboutsummaryrefslogtreecommitdiff
path: root/games/maelstrom
diff options
context:
space:
mode:
Diffstat (limited to 'games/maelstrom')
-rw-r--r--games/maelstrom/files/patch-ad11
1 files changed, 11 insertions, 0 deletions
diff --git a/games/maelstrom/files/patch-ad b/games/maelstrom/files/patch-ad
new file mode 100644
index 000000000000..4fc0f1d16d3d
--- /dev/null
+++ b/games/maelstrom/files/patch-ad
@@ -0,0 +1,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);