]> Pileus Git - ~andy/gtk/commitdiff
Remove a pointless check. (#122710, Kjartan Maraas)
authorMatthias Clasen <maclas@gmx.de>
Fri, 19 Sep 2003 19:20:09 +0000 (19:20 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 19 Sep 2003 19:20:09 +0000 (19:20 +0000)
2003-09-19  Matthias Clasen  <maclas@gmx.de>

* io-tga.c (try_preload): Remove a pointless check.
(#122710, Kjartan Maraas)

gdk-pixbuf/ChangeLog
gdk-pixbuf/io-tga.c

index bc072dc9cbd4d9bba4cede197a6e6f27e5f71711..af313a4dd0ee65253d505de4a389f7ef4f6b4514 100644 (file)
@@ -1,3 +1,8 @@
+2003-09-19  Matthias Clasen  <maclas@gmx.de>
+
+       * io-tga.c (try_preload): Remove a pointless check.  
+       (#122710, Kjartan Maraas)
+
 Mon Aug 18 10:25:29 2003  Owen Taylor  <otaylor@redhat.com>
 
        * gdk-pixdata.c (gdk_pixdata_to_csource): Add the correct
index 392d9663a43b5df7ad65fdb5203c13b1eee993b2..1486d44803d7b638db75ba053edff1497b96b7fb 100644 (file)
@@ -760,12 +760,6 @@ static gboolean try_preload(TGAContext *ctx, GError **err)
                                            _("TGA image has invalid dimensions"));
                                return FALSE;
                        }
-                       if (ctx->hdr->infolen > 255) {
-                               g_set_error(err, GDK_PIXBUF_ERROR,
-                                           GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
-                                           _("TGA image comment length is too long"));
-                               return FALSE;
-                       }
                        if ((ctx->hdr->flags & TGA_INTERLEAVE_MASK) != TGA_INTERLEAVE_NONE) {
                                g_set_error(err, GDK_PIXBUF_ERROR, 
                                            GDK_PIXBUF_ERROR_UNKNOWN_TYPE,