multiudpsink: pass length parameter to g_convert
authorMichael Smith <msmith@xiph.org>
Mon, 21 Dec 2009 01:24:47 +0000 (17:24 -0800)
committerMichael Smith <msmith@xiph.org>
Mon, 21 Dec 2009 01:26:15 +0000 (17:26 -0800)
gst/udp/gstmultiudpsink.c

index 27fb8b2..efbef3d 100644 (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));