Skip to content

Commit 0cfc4bb

Browse files
author
Josh Peterson
committed
Fix a possible crash while printing a warning
The format string was incorrect in this case, which leads to this crash in Unity: https://crashes.hq.unity3d.com/crashes/5aa00d01b4db11000de20c8e?versions_range=2018.3.5..2019.2.99&date_start=&date_end=&source= Simply remove the unused `%s` format specifier here.
1 parent 67c73d2 commit 0cfc4bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mono/metadata/threadpool-io.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ selector_thread_wakeup_drain_pipes (void)
189189
break;
190190
if (received == SOCKET_ERROR) {
191191
if (WSAGetLastError () != WSAEINTR && WSAGetLastError () != WSAEWOULDBLOCK)
192-
g_warning ("selector_thread_wakeup_drain_pipes: recv () failed, error (%d) %s\n", WSAGetLastError ());
192+
g_warning ("selector_thread_wakeup_drain_pipes: recv () failed, error (%d)\n", WSAGetLastError ());
193193
break;
194194
}
195195
#endif
@@ -714,4 +714,4 @@ mono_threadpool_io_remove_domain_jobs (MonoDomain *domain)
714714
g_assert_not_reached ();
715715
}
716716

717-
#endif
717+
#endif

0 commit comments

Comments
 (0)