diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-08-30 16:55:49 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-08-30 16:55:49 +0000 |
commit | a4b3c358286488468a3e6546045500add5a6ef4a (patch) | |
tree | e347f3634d431f0ec000c9f4aed1a3d9f3d0103c /gdk-pixbuf | |
parent | cc39b38159a1288c572c3dd24934fe20cb7d0930 (diff) | |
download | gdk-pixbuf-a4b3c358286488468a3e6546045500add5a6ef4a.tar.gz |
Make this work again.
2005-08-30 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-io.c (format_check): Make this work again.
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r-- | gdk-pixbuf/ChangeLog | 2 | ||||
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-io.c | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index b18e30f38..87120f948 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,5 +1,7 @@ 2005-08-30 Matthias Clasen <mclasen@redhat.com> + * gdk-pixbuf-io.c (format_check): Make this work again. + * io-png.c (png_save_to_callback_write_func): Add a cast to avoid compiler warnings. diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c index b330ea5ef..56dfefe62 100644 --- a/gdk-pixbuf/gdk-pixbuf-io.c +++ b/gdk-pixbuf/gdk-pixbuf-io.c @@ -52,16 +52,17 @@ format_check (GdkPixbufModule *module, guchar *buffer, int size) gchar m; GdkPixbufModulePattern *pattern; gboolean anchored; - gchar *prefix, *mask; + guchar *prefix; + gchar *mask; for (pattern = module->info->signature; pattern->prefix; pattern++) { if (pattern->mask && pattern->mask[0] == '*') { - prefix = pattern->prefix + 1; + prefix = (guchar *)pattern->prefix + 1; mask = pattern->mask + 1; anchored = FALSE; } else { - prefix = pattern->prefix; + prefix = (guchar *)pattern->prefix; mask = pattern->mask; anchored = TRUE; } |