diff --git a/gdk/x11/gdkim-x11.c b/gdk/x11/gdkim-x11.c index 5e00ac3254..bbd9ac12f7 100644 --- a/gdk/x11/gdkim-x11.c +++ b/gdk/x11/gdkim-x11.c @@ -170,7 +170,7 @@ gdk_wcstombs (const GdkWChar *src) * We must copy the string into an area allocated by glib, because * the string 'tpr.value' must be freed by XFree(). */ - mbstr = g_strdup(tpr.value); + mbstr = g_strdup((gchar *)tpr.value); XFree (tpr.value); } else