From a9d9335b20a0b708fae1b978f70348aec998356a Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 1 Apr 2014 21:49:16 -0400 Subject: 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. --- textscreen/txt_window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'textscreen/txt_window.c') 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); -- cgit v1.2.3