Files
pkgsrc-ng/games/xboing/patches/patch-ae
2013-09-26 17:14:40 +02:00

14 lines
509 B
Plaintext

$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);