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
This commit is contained in:
parent
112ec0d637
commit
134b7f8ef2
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue