diff options
Diffstat (limited to 'gdk-pixbuf/io-png.c')
-rw-r--r-- | gdk-pixbuf/io-png.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk-pixbuf/io-png.c b/gdk-pixbuf/io-png.c index 5690875ec..e5ab22bcb 100644 --- a/gdk-pixbuf/io-png.c +++ b/gdk-pixbuf/io-png.c @@ -327,7 +327,7 @@ gdk_pixbuf__png_image_load (FILE *f, GError **error) rows = g_new (png_bytep, h); - for (i = 0, ptr = pixbuf->pixels; i < h; i++, ptr += pixbuf->rowstride) + for (i = 0, ptr = pixbuf->pixels; i < h; i++, ptr = (guchar *) ptr + pixbuf->rowstride) rows[i] = ptr; png_read_image (png_ptr, rows); |