From 6f6ac84495ab36529f7f8cf2dae2c12f7d258041 Mon Sep 17 00:00:00 2001 From: Deve Date: Fri, 22 Dec 2017 21:02:37 +0100 Subject: [PATCH] Fixed android compilation --- src/utils/log.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/log.cpp b/src/utils/log.cpp index 2b5ea0557..d9c25e7bf 100644 --- a/src/utils/log.cpp +++ b/src/utils/log.cpp @@ -210,7 +210,7 @@ void Log::writeLine(const char *line, int level) case LL_FATAL: alp = ANDROID_LOG_FATAL; break; default: alp = ANDROID_LOG_FATAL; } - __android_log_vprint(alp, "SuperTuxKart", line); + __android_log_print(alp, "SuperTuxKart", "%s", line); #else printf(line); #endif @@ -221,7 +221,7 @@ void Log::writeLine(const char *line, int level) OutputDebugString(line); #endif - if (m_file_stdout) fprintf(m_file_stdout, line); + if (m_file_stdout) fprintf(m_file_stdout, "%s", line); #ifdef WIN32 if (level >= LL_FATAL)