From 924dccca21462498b51d9d2514a67fa227f84dde Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 19 Jun 2011 18:42:48 +0000 Subject: [PATCH] safer sprintf git-svn-id: https://svn.eduke32.com/eduke32@1911 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/game.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index 476959e60..c1ecb2e28 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -9051,7 +9051,7 @@ static void G_CompileScripts(void) pathsearchmode = 1; if (g_skipDefaultCons == 0) { - Bsprintf(g_scriptNamePtr,defaultconfile()); + Bsprintf(g_scriptNamePtr,"%s",defaultconfile()); } C_Compile(g_scriptNamePtr); @@ -9059,7 +9059,7 @@ static void G_CompileScripts(void) { if (g_skipDefaultCons == 0) { - Bsprintf(g_scriptNamePtr,defaultconfile()); + Bsprintf(g_scriptNamePtr,"%s",defaultconfile()); } C_Compile(g_scriptNamePtr); }