blob: a27c88dd8010749a487512b7e83ab923c0a7f03f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ae,v 1.1 2004/02/28 18:36:38 snj 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);
|