aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-04-27 21:19:31 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-04-27 21:19:31 +0000
commitd039013822d05d295d48b808143c95de543dac42 (patch)
treec674696e4bfe804c01454cb059ee63108af419e4 /games
parenta0c749143de2741a3220d3f91b48c6d1b17b8f43 (diff)
downloadports-d039013822d05d295d48b808143c95de543dac42.tar.gz
ports-d039013822d05d295d48b808143c95de543dac42.zip
Notes
Diffstat (limited to 'games')
-rw-r--r--games/yamsweeper/files/patch-ab11
1 files changed, 11 insertions, 0 deletions
diff --git a/games/yamsweeper/files/patch-ab b/games/yamsweeper/files/patch-ab
new file mode 100644
index 000000000000..afce367a8f83
--- /dev/null
+++ b/games/yamsweeper/files/patch-ab
@@ -0,0 +1,11 @@
+--- highscore.c.orig Wed Nov 2 16:20:40 1994
++++ highscore.c Thu Apr 27 14:12:23 2000
+@@ -212,7 +212,7 @@
+ read_highscore();
+ if (atoi((char*)high_score_tab[mode].holders[HIGHSCORE_MAX_KEEP - 1].seconds) >= done - start) {
+ sprintf(high_score_tab[mode].holders[HIGHSCORE_MAX_KEEP - 1].seconds, "%3.3d", done - start);
+- strcpy(high_score_tab[mode].holders[HIGHSCORE_MAX_KEEP - 1].uname, getenv(appData.identifier));
++ strncpy(high_score_tab[mode].holders[HIGHSCORE_MAX_KEEP - 1].uname, getenv(appData.identifier), sizeof(high_score_tab[mode].holders[HIGHSCORE_MAX_KEEP - 1].uname));
+ sprintf(high_score_tab[mode].holders[HIGHSCORE_MAX_KEEP - 1].hitime,
+ "%0*ld", sizeof high_score_tab[mode].holders[HIGHSCORE_MAX_KEEP - 1].hitime - 1,
+ (long)time(NULL));