diff options
author | Elliot Lee <sopwith@src.gnome.org> | 1999-11-02 21:49:46 +0000 |
---|---|---|
committer | Elliot Lee <sopwith@src.gnome.org> | 1999-11-02 21:49:46 +0000 |
commit | b953e64bc651ce3df4e9401f92ee61bb78e253da (patch) | |
tree | 48fa28d326f8b22b4c0e04087dba5ff7a25fd307 /gdk-pixbuf/gdk-pixbuf-loader.c | |
parent | 966ae7b61315f2c92b843ed6734fdcd6a31d7a74 (diff) | |
download | gdk-pixbuf-b953e64bc651ce3df4e9401f92ee61bb78e253da.tar.gz |
Always return the amount eaten, rather than the full header size.
Always return the amount eaten, rather than the full header size.
Diffstat (limited to 'gdk-pixbuf/gdk-pixbuf-loader.c')
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-loader.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-loader.c b/gdk-pixbuf/gdk-pixbuf-loader.c index b8e098641..525345d57 100644 --- a/gdk-pixbuf/gdk-pixbuf-loader.c +++ b/gdk-pixbuf/gdk-pixbuf-loader.c @@ -283,10 +283,10 @@ gdk_pixbuf_loader_eat_header_write (GdkPixbufLoader *loader, guchar *buf, size_t priv->header_buf_offset += nbytes; - if(priv->header_buf_offset >= LOADER_HEADER_SIZE) { - return gdk_pixbuf_loader_load_module(loader); - } else - return nbytes; + if(priv->header_buf_offset >= LOADER_HEADER_SIZE) + gdk_pixbuf_loader_load_module(loader); + + return nbytes; } /** |