Imported from libpng-1.2.23beta03.tar

This commit is contained in:
Glenn Randers-Pehrson
2007-10-16 16:52:27 -05:00
parent 28e3cb3e93
commit 930be98598
48 changed files with 106 additions and 97 deletions

View File

@@ -1043,7 +1043,7 @@ png_set_unknown_chunks(png_structp png_ptr,
png_memcpy((png_charp)to->name,
(png_charp)from->name,
png_sizeof(from->name));
to->name[png_sizeof(to->name)] = '\0';
to->name[png_sizeof(to->name)-1] = '\0';
to->data = (png_bytep)png_malloc_warn(png_ptr, from->size);
if (to->data == NULL)