Always return the amount eaten, rather than the full header size.

Always return the amount eaten, rather than the full header size.
This commit is contained in:
Elliot Lee 1999-11-02 21:49:46 +00:00
parent 966ae7b613
commit b953e64bc6
2 changed files with 8 additions and 8 deletions

View File

@ -283,9 +283,9 @@ 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
if(priv->header_buf_offset >= LOADER_HEADER_SIZE)
gdk_pixbuf_loader_load_module(loader);
return nbytes;
}

View File

@ -283,9 +283,9 @@ 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
if(priv->header_buf_offset >= LOADER_HEADER_SIZE)
gdk_pixbuf_loader_load_module(loader);
return nbytes;
}