multiudpsink: pass length parameter to g_convert

This commit is contained in:
Michael Smith 2009-12-20 17:24:47 -08:00
parent 188725811f
commit eab08d67b3

View file

@ -411,7 +411,7 @@ socket_last_error_message ()
if (FAILED (result)) {
return g_strdup ("failed to get error message from system");
} else {
return g_convert (buf, "UTF-16", "UTF-8", NULL, NULL, NULL);
return g_convert (buf, -1, "UTF-16", "UTF-8", NULL, NULL, NULL);
}
#else
return g_strdup (g_strerror (errno));