Imported from libpng-1.2.35rc02.tar

This commit is contained in:
Glenn Randers-Pehrson
2009-02-12 15:27:36 -06:00
parent 51807d7608
commit 8cafc1e1ac
48 changed files with 118 additions and 107 deletions

View File

@@ -387,7 +387,7 @@ png_set_pCAL(png_structp png_ptr, png_infop info_ptr,
info_ptr->free_me |= PNG_FREE_PCAL;
#endif
png_memset(info_ptr->pcal_params, 0, nparams * png_sizeof(png_color));
png_memset(info_ptr->pcal_params, 0, (nparams + 1) * png_sizeof(png_charp));
for (i = 0; i < nparams; i++)
{