From 71d8ef248f4f1a05646f5e1e7e6388a59f08b121 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 30 Mar 2014 18:07:52 -0400 Subject: Eliminate some uses of sprintf() from common code. As part of this, add DIR_SEPARATOR_S as a string version of the DIR_SEPARATOR macro. Change M_TempFile() to return a string allocated on the C heap rather than the zone heap. This is a first step towards fixing #371. --- src/doom/m_menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/doom') diff --git a/src/doom/m_menu.c b/src/doom/m_menu.c index 93941b3b..1fde34ba 100644 --- a/src/doom/m_menu.c +++ b/src/doom/m_menu.c @@ -1932,12 +1932,12 @@ void M_StartControlPanel (void) static void M_DrawOPLDev(void) { - extern void I_OPL_DevMessages(char *); + extern void I_OPL_DevMessages(char *, size_t); char debug[1024]; char *curr, *p; int line; - I_OPL_DevMessages(debug); + I_OPL_DevMessages(debug, sizeof(debug)); curr = debug; line = 0; -- cgit v1.2.3