Imported from libpng-0.89c.tar

This commit is contained in:
Guy Schalnat
1996-06-17 16:24:45 -05:00
committed by Glenn Randers-Pehrson
parent e5a37797b4
commit c21f90c334
9 changed files with 37 additions and 33 deletions

View File

@@ -221,7 +221,7 @@ png_create_struct(uInt type)
if ((struct_ptr = (png_voidp)farmalloc(size)) != NULL)
#else
# if defined(_MSC_VER) && defined(MAXSEG_64K)
if ((struct_ptr = (png_voidp)halloc(size)) != NULL)
if ((struct_ptr = (png_voidp)halloc(size,1)) != NULL)
# else
if ((struct_ptr = (png_voidp)malloc(size)) != NULL)
# endif