diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2001-01-28 23:58:41 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2001-01-28 23:58:41 +0000 |
commit | 7af2e3c04ddb0dbf7736cde472f4886523ecd19c (patch) | |
tree | 4497f72d19c9d595479a6064aeb497f3b52da73d /games/maelstrom | |
parent | 9bf98d2a4b1f11cc5a6496dda08baa7687adc9b4 (diff) | |
download | ports-7af2e3c04ddb0dbf7736cde472f4886523ecd19c.tar.gz ports-7af2e3c04ddb0dbf7736cde472f4886523ecd19c.zip |
Notes
Diffstat (limited to 'games/maelstrom')
-rw-r--r-- | games/maelstrom/files/patch-ad | 11 |
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); |