aboutsummaryrefslogtreecommitdiff
path: root/games/rockdodger
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2004-12-02 15:18:44 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2004-12-02 15:18:44 +0000
commit26970622399afcbfd110df94963c9cdd638ee084 (patch)
treebb5c8d5f04589ccce30290f8d4eb86302ffdca70 /games/rockdodger
parent8a8f78c3f9fef6b50d69bb278443479ee6a5c0d1 (diff)
downloadports-26970622399afcbfd110df94963c9cdd638ee084.tar.gz
ports-26970622399afcbfd110df94963c9cdd638ee084.zip
Notes
Diffstat (limited to 'games/rockdodger')
-rw-r--r--games/rockdodger/Makefile2
-rw-r--r--games/rockdodger/files/patch-main.c23
2 files changed, 24 insertions, 1 deletions
diff --git a/games/rockdodger/Makefile b/games/rockdodger/Makefile
index dd514c71f0e8..08fa739be8ec 100644
--- a/games/rockdodger/Makefile
+++ b/games/rockdodger/Makefile
@@ -7,7 +7,7 @@
PORTNAME= rockdodger
PORTVERSION= 0.6
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= spacerocks
diff --git a/games/rockdodger/files/patch-main.c b/games/rockdodger/files/patch-main.c
new file mode 100644
index 000000000000..edeaa6c35930
--- /dev/null
+++ b/games/rockdodger/files/patch-main.c
@@ -0,0 +1,23 @@
+
+$FreeBSD$
+
+--- main.c.orig
++++ main.c
+@@ -459,7 +459,7 @@
+ else {
+ char s[1024];
+ umask(0177);
+- sprintf(s,"%s/.rockdodger_high",getenv("HOME"));
++ snprintf(s,1024,"%s/.rockdodger_high",getenv("HOME"));
+ if (f=fopen(s,mode)) {
+ umask(mask);
+ return f;
+@@ -478,7 +478,7 @@
+ for (i=0; i<8; i++) {
+ char s[1024];
+ int highscore;
+- if (fscanf (f, "%d %[^\n]", &highscore, s)!=2)
++ if (fscanf (f, "%d %1023[^\n]", &highscore, s)!=2)
+ break;
+ if (high[i].allocated)
+ free(high[i].name);