X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3133cb9f53e68e69f9b9e7c06f07ccd285aba98b..7291c37aa8f406b9487963a1b7fd6ee45b2e0b34:/src/gtk/clipbrd.cpp diff --git a/src/gtk/clipbrd.cpp b/src/gtk/clipbrd.cpp index c6edc527b1..9f9c3f827f 100644 --- a/src/gtk/clipbrd.cpp +++ b/src/gtk/clipbrd.cpp @@ -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';