diff --git a/src/st/st-texture-cache.c b/src/st/st-texture-cache.c index fbdf7d6df..6ec358165 100644 --- a/src/st/st-texture-cache.c +++ b/src/st/st-texture-cache.c @@ -1197,7 +1197,7 @@ load_sliced_image (GSimpleAsyncResult *result, if (!g_file_get_contents (data->path, &buffer, &length, NULL)) goto out; - if (!gdk_pixbuf_loader_write (loader, buffer, length, NULL)) + if (!gdk_pixbuf_loader_write (loader, (const guchar *) buffer, length, NULL)) goto out; if (!gdk_pixbuf_loader_close (loader, NULL))