From 6bb5f78bd2bdf10ddbb087171c6f640d425c9d40 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 30 Mar 2014 18:50:35 -0400 Subject: heretic: Eliminate use of sprintf(). Use snprintf() in place of sprintf(). This is part of fixing #371. --- src/heretic/f_finale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/heretic/f_finale.c') diff --git a/src/heretic/f_finale.c b/src/heretic/f_finale.c index 1592dac4..7978e45b 100644 --- a/src/heretic/f_finale.c +++ b/src/heretic/f_finale.c @@ -405,7 +405,7 @@ void F_BunnyScroll(void) laststage = stage; } - sprintf(name, "END%i", stage); + snprintf(name, sizeof(name), "END%i", stage); V_DrawPatch((SCREENWIDTH - 13 * 8) / 2, (SCREENHEIGHT - 8 * 8) / 2, W_CacheLumpName(name, PU_CACHE)); } -- cgit v1.2.3