From 49e41f7123f7ec86a49897d2921823bd3edb9e65 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Mon, 11 Feb 2013 16:38:30 -0500 Subject: [PATCH] client: Fix typo from previous commit --- client/client_msgs.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/client/client_msgs.cpp b/client/client_msgs.cpp index 2330deac22..fffe1e97d4 100644 --- a/client/client_msgs.cpp +++ b/client/client_msgs.cpp @@ -122,18 +122,20 @@ void show_message(PROJ_AM *p, char* msg, int priority, bool is_html, const char* x = "---"; } printf("%s [%s] %s\n", time_string, x, message); + #if defined(_WIN32) || defined(ANDROID) - char message[2048]; - snprintf(message, "%s [%s] %s\n", time_string, x, message); + char evt_message[2048]; + snprintf(evt_message, sizeof(evt_message), "%s [%s] %s\n", time_string, x, message); #ifdef _WIN32 // print message to the debugger view port - ::OutputDebugString(message); + ::OutputDebugString(evt_message); #endif #ifdef ANDROID // print message to Logcat - __android_log_print(ANDROID_LOG_DEBUG, "BOINC", message) + __android_log_print(ANDROID_LOG_INFO, "BOINC", evt_message) #endif #endif + } #endif