diff --git a/AUTHORS b/AUTHORS index 66d9201c2..c98d52286 100644 --- a/AUTHORS +++ b/AUTHORS @@ -4,6 +4,7 @@ PNG REFERENCE LIBRARY AUTHORS This is the list of PNG Reference Library ("libpng") Contributing Authors, for copyright and licensing purposes. + * Adam Richter * Andreas Dilger * Cosmin Truta * Dave Martindale diff --git a/pngtrans.c b/pngtrans.c index 1100f46eb..709345132 100644 --- a/pngtrans.c +++ b/pngtrans.c @@ -708,7 +708,7 @@ png_do_check_palette_indexes(png_structrp png_ptr, png_row_infop row_info) * forms produced on either GCC or MSVC. */ int padding = PNG_PADBITS(row_info->pixel_depth, row_info->width); - png_bytep rp = png_ptr->row_buf + row_info->rowbytes - 1; + png_bytep rp = png_ptr->row_buf + row_info->rowbytes; switch (row_info->bit_depth) {