summaryrefslogtreecommitdiff
path: root/textscreen/txt_window.c
diff options
context:
space:
mode:
authorSimon Howard2014-04-01 21:49:16 -0400
committerSimon Howard2014-04-01 21:49:16 -0400
commita9d9335b20a0b708fae1b978f70348aec998356a (patch)
tree9d775843fddbffaa9babdf54221b0ac98105dc91 /textscreen/txt_window.c
parent17c14e1fad6dc277a6e58e4f421d5c65e210d1fe (diff)
downloadchocolate-doom-a9d9335b20a0b708fae1b978f70348aec998356a.tar.gz
chocolate-doom-a9d9335b20a0b708fae1b978f70348aec998356a.tar.bz2
chocolate-doom-a9d9335b20a0b708fae1b978f70348aec998356a.zip
textscreen: Use safe string functions.
Define TXT_{StringCopy,StringConcat,snprintf,vsnprintf} as analogs of the m_misc.c versions so that the textscreen library does not need a dependency on the Doom code, and change all textscreen code to use these instead of unsafe functions. This fixes #372.
Diffstat (limited to 'textscreen/txt_window.c')
-rw-r--r--textscreen/txt_window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/textscreen/txt_window.c b/textscreen/txt_window.c
index 9ab6da9b..0eded4bd 100644
--- a/textscreen/txt_window.c
+++ b/textscreen/txt_window.c
@@ -511,7 +511,7 @@ txt_window_t *TXT_MessageBox(char *title, char *message, ...)
va_list args;
va_start(args, message);
- vsnprintf(buf, sizeof(buf), message, args);
+ TXT_vsnprintf(buf, sizeof(buf), message, args);
va_end(args);
window = TXT_NewWindow(title);