summaryrefslogtreecommitdiff
path: root/libmediaart/extractpixbuf.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2013-10-07 18:01:22 +0200
committerCarlos Garnacho <carlosg@gnome.org>2013-10-07 18:05:39 +0200
commit728913ae639952123fca8f7bf6d620df7b3acf87 (patch)
tree46cf60655159c1f6857221855a3595f6630e79c4 /libmediaart/extractpixbuf.c
parent95b3b782a49032da3b07618323aa1e985e440167 (diff)
downloadlibmediaart-728913ae639952123fca8f7bf6d620df7b3acf87.tar.gz
extract: Fix two compile warnings
Diffstat (limited to 'libmediaart/extractpixbuf.c')
-rw-r--r--libmediaart/extractpixbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmediaart/extractpixbuf.c b/libmediaart/extractpixbuf.c
index df8a0f8..2f823fc 100644
--- a/libmediaart/extractpixbuf.c
+++ b/libmediaart/extractpixbuf.c
@@ -103,7 +103,7 @@ media_art_buffer_to_jpeg (const unsigned char *buffer,
g_strcmp0 (buffer_mime, "JPG") == 0) &&
(buffer && len > 2 && buffer[0] == 0xff && buffer[1] == 0xd8 && buffer[2] == 0xff)) {
g_debug ("Saving album art using raw data as uri:'%s'", target);
- g_file_set_contents (target, buffer, (gssize) len, NULL);
+ g_file_set_contents (target, (const gchar *) buffer, (gssize) len, NULL);
} else {
GdkPixbuf *pixbuf;
GdkPixbufLoader *loader;