Skip to content

Commit 35471ea

Browse files
committed
Update goutput.c
Changing unity's vprintf adapters to use the va_list param instead of always passing NULL.
1 parent 9d40bf4 commit 35471ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mono/eglib/goutput.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,13 +279,13 @@ g_set_printerr_handler (GPrintFunc func)
279279
static void
280280
unity_vprintf_GPrintFunc_adapter (const gchar *string)
281281
{
282-
our_vprintf(string, NULL);
282+
our_vprintf("%s", string);
283283
}
284284

285285
static void
286286
unity_vprintf_GLogFunc_adapter (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data)
287287
{
288-
our_vprintf(message, NULL);
288+
our_vprintf("%s", message);
289289
}
290290

291291
// Redirect all stdout output to unity vprintf function

0 commit comments

Comments
 (0)