]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/clipbrd.cpp
iconv() really never set the trailing 0.
[wxWidgets.git] / src / gtk / clipbrd.cpp
index c6edc527b1d980eff1b786ecec9ab9c15fb36e7a..9f9c3f827f070e2487fc7aa74f4c38f7f227ff82 100644 (file)
@@ -256,7 +256,7 @@ selection_handler( GtkWidget *WXUNUSED(widget),
     {
         const wchar_t *wstr = (const wchar_t *)d;
         size_t len = wxConvCurrent->WC2MB(NULL, wstr, 0);
-        char *str = malloc(len + 1);
+        char *str = (char*) malloc(len + 1);
         wxConvCurrent->WC2MB(str, wstr, len);
         str[len] = '\0';