[runtime] Prefer eglib's g_snprintf as snprintf does not work under all platforms.
authorJoão Matos <joao@tritao.eu>
Mon, 8 Jun 2015 15:05:10 +0000 (16:05 +0100)
committerJoão Matos <joao@tritao.eu>
Mon, 8 Jun 2015 15:05:10 +0000 (16:05 +0100)
Fixes the MSVC build.

mono/utils/mono-threads.h

index dbf019cffaf6b3679c51f1156349e49ba4a964c1..edbf934ac9bf7321a524a47459231121c00d9f40 100644 (file)
@@ -88,7 +88,7 @@ and reduce the number of casts drastically.
 /* Logging - enable them below if you need specific logging for the category you need */
 #define MOSTLY_ASYNC_SAFE_PRINTF(...) do { \
        char __buff[1024];      __buff [0] = '\0'; \
-       snprintf (__buff, sizeof (__buff), __VA_ARGS__);        \
+       g_snprintf (__buff, sizeof (__buff), __VA_ARGS__);      \
        write (1, __buff, strlen (__buff));     \
 } while (0)