Module Name: src
Committed By: dholland
Date: Mon May 25 00:46:02 UTC 2009
Modified Files:
src/games/tetris: tetris.c
Log Message:
sprintf -> snprintf
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/games/tetris/tetris.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/games/tetris/tetris.c
diff -u src/games/tetris/tetris.c:1.19 src/games/tetris/tetris.c:1.20
--- src/games/tetris/tetris.c:1.19 Sun Jul 20 01:03:22 2008
+++ src/games/tetris/tetris.c Mon May 25 00:46:01 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: tetris.c,v 1.19 2008/07/20 01:03:22 lukem Exp $ */
+/* $NetBSD: tetris.c,v 1.20 2009/05/25 00:46:01 dholland Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -193,7 +193,7 @@
}
}
- sprintf(key_msg,
+ snprintf(key_msg, sizeof(key_msg),
"%s - left %s - rotate %s - right %s - drop %s - pause %s - quit",
key_write[0], key_write[1], key_write[2], key_write[3],
key_write[4], key_write[5]);