summaryrefslogtreecommitdiff
path: root/games/xboing/patches/patch-ae
diff options
context:
space:
mode:
Diffstat (limited to 'games/xboing/patches/patch-ae')
-rw-r--r--games/xboing/patches/patch-ae13
1 files changed, 13 insertions, 0 deletions
diff --git a/games/xboing/patches/patch-ae b/games/xboing/patches/patch-ae
new file mode 100644
index 00000000000..587ecf38da6
--- /dev/null
+++ b/games/xboing/patches/patch-ae
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1.2.2 2004/03/08 17:44:16 agc Exp $
+
+--- demo.c.orig 2004-02-28 10:06:20.000000000 -0800
++++ demo.c 2004-02-28 10:06:41.000000000 -0800
+@@ -154,7 +154,7 @@ static void DoBlocks(display, window)
+
+ /* Construct the demo level filename */
+ if ((str = getenv("XBOING_LEVELS_DIR")) != NULL)
+- sprintf(levelPath, "%s/demo.data", str);
++ snprintf(levelPath, sizeof(levelPath), "%s/demo.data", str);
+ else
+ sprintf(levelPath, "%s/demo.data", LEVEL_INSTALL_DIR);
+