From 01ae851bf998330a9ca95467e238c507aa55cae1 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 30 Mar 2014 19:00:49 -0400 Subject: hexen: Eliminate use of sprintf(). Use snprintf() in place of sprintf(). This is part of fixing #371. --- src/hexen/sc_man.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hexen/sc_man.c') diff --git a/src/hexen/sc_man.c b/src/hexen/sc_man.c index 2802596b..35f5ec0b 100644 --- a/src/hexen/sc_man.c +++ b/src/hexen/sc_man.c @@ -88,7 +88,7 @@ void SC_Open(char *name) if (sc_FileScripts == true) { - sprintf(fileName, "%s%s.txt", sc_ScriptsDir, name); + snprintf(fileName, sizeof(fileName), "%s%s.txt", sc_ScriptsDir, name); SC_OpenFile(fileName); } else -- cgit v1.2.3