summaryrefslogtreecommitdiff
path: root/src/hexen/sc_man.c
diff options
context:
space:
mode:
authorSimon Howard2014-03-30 19:00:49 -0400
committerSimon Howard2014-03-30 19:00:49 -0400
commit01ae851bf998330a9ca95467e238c507aa55cae1 (patch)
tree3fe17da2cdd49ea725c7a6d044ca4885ce024401 /src/hexen/sc_man.c
parent6bb5f78bd2bdf10ddbb087171c6f640d425c9d40 (diff)
downloadchocolate-doom-01ae851bf998330a9ca95467e238c507aa55cae1.tar.gz
chocolate-doom-01ae851bf998330a9ca95467e238c507aa55cae1.tar.bz2
chocolate-doom-01ae851bf998330a9ca95467e238c507aa55cae1.zip
hexen: Eliminate use of sprintf().
Use snprintf() in place of sprintf(). This is part of fixing #371.
Diffstat (limited to 'src/hexen/sc_man.c')
-rw-r--r--src/hexen/sc_man.c2
1 files changed, 1 insertions, 1 deletions
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