Skip to content

Commit 58fa670

Browse files
authored
Update core.cpp
1 parent 4a75c0e commit 58fa670

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/core/modules/core/core.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,11 @@
3333

3434
void ConsoleMessage(const char* msg)
3535
{
36-
// Ensure all formatting specifiers are escaped to prevent a crash (fix for issue #275).
37-
char* pMsg = (char*) extract<char *>(str(msg).replace("%", "%%"));
36+
char* pMsg = (char*) msg;
3837
int iLen = strlen(msg);
3938

4039
while(iLen > 0) {
41-
ConMsg(pMsg);
40+
ConMsg("%s", pMsg);
4241
pMsg += MAX_CON_MSG-1;
4342
iLen -= MAX_CON_MSG-1;
4443
}

0 commit comments

Comments
 (0)