Browse Source

Fix security issue in logging on android (required for compatibility with new NDK).
Changed android log tag from "Urho3D" to "Atomic".

Rokas Kupstys 8 years ago
parent
commit
d091c0b72d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Source/Atomic/IO/Log.cpp

+ 2 - 2
Source/Atomic/IO/Log.cpp

@@ -228,10 +228,10 @@ void Log::WriteRaw(const String& message, bool error)
     if (logInstance->quiet_)
     {
         if (error)
-            __android_log_print(ANDROID_LOG_ERROR, "Urho3D", message.CString());
+            __android_log_print(ANDROID_LOG_ERROR, "Atomic", "%s", message.CString());
     }
     else
-        __android_log_print(error ? ANDROID_LOG_ERROR : ANDROID_LOG_INFO, "Urho3D", message.CString());
+        __android_log_print(error ? ANDROID_LOG_ERROR : ANDROID_LOG_INFO, "Atomic", "%s", message.CString());
 #elif defined(IOS)
     SDL_IOS_LogMessage(message.CString());
 #else