summaryrefslogtreecommitdiff
path: root/games/xboing/patches/patch-ae
blob: 587ecf38da629218dc23fe6547cb389104670508 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);