summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-xpm.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@nuclecu.unam.mx>1999-08-09 06:09:24 +0000
committerArturo Espinosa <unammx@src.gnome.org>1999-08-09 06:09:24 +0000
commit49ca2615f8746907fa5ce1b5941ebff87332ddf7 (patch)
tree6dd6c1de6d229e56b4de7d3545645ba2e6b87bad /gdk-pixbuf/io-xpm.c
parentecef1e1f2f71d417e03f78dd7c489132820ceb50 (diff)
downloadgdk-pixbuf-49ca2615f8746907fa5ce1b5941ebff87332ddf7.tar.gz
Fixed compiler warnings. Fixed write to unallocated memory (row_ptr), and
1999-08-09 Federico Mena Quintero <federico@nuclecu.unam.mx> * src/io-png.c (image_save): Fixed compiler warnings. Fixed write to unallocated memory (row_ptr), and fixed its type as well. Take into account the ArtPixbuf's rowstride when assigning the row pointers. * src/gdk-pixbuf.c: Fixup includes. * src/gdk-pixbuf-io.c: Likewise.
Diffstat (limited to 'gdk-pixbuf/io-xpm.c')
-rw-r--r--gdk-pixbuf/io-xpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk-pixbuf/io-xpm.c b/gdk-pixbuf/io-xpm.c
index 98c7532f1..b97fca2f1 100644
--- a/gdk-pixbuf/io-xpm.c
+++ b/gdk-pixbuf/io-xpm.c
@@ -342,7 +342,7 @@ static GdkPixBuf *
color->transparent = FALSE;
color_name = xpm_extract_color(buffer);
-
+
if ((color_name == NULL) || (g_strcasecmp(color_name, "None") == 0)
|| (gdk_color_parse(color_name, &color->color) == FALSE)) {
color->transparent = TRUE;