From 134b7f8ef2e678da2fe044eb0cac65474865f63c Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Tue, 6 Nov 2007 20:08:34 +0000 Subject: [PATCH] Fix printfing the same string twice. Makes it possible to print %d Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3042 --- src/gui/sdlmain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index de7f6ec9..83df14fe 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: sdlmain.cpp,v 1.135 2007-10-28 16:36:42 qbix79 Exp $ */ +/* $Id: sdlmain.cpp,v 1.136 2007-11-06 20:08:34 qbix79 Exp $ */ #ifndef _GNU_SOURCE #define _GNU_SOURCE @@ -1317,7 +1317,7 @@ void GFX_ShowMsg(char const* format,...) { vsprintf(buf,format,msg); strcat(buf,"\n"); va_end(msg); - if(!no_stdout) printf(buf); + if(!no_stdout) printf("%s",buf); //Else buf is parsed again. }; extern void UI_Init(void);