Imported from libpng-1.2.22beta4.tar

This commit is contained in:
Glenn Randers-Pehrson
2007-10-07 06:03:41 -05:00
parent 40dd10dfb2
commit ce2a6d3739
52 changed files with 127 additions and 121 deletions

View File

@@ -1,7 +1,7 @@
/* pngerror.c - stub functions for i/o and memory allocation
*
* Last changed in libpng 1.2.20 September 7, 2007
* Last changed in libpng 1.2.22 [October 7, 2007]
* For conditions of distribution and use, see copyright notice in png.h
* Copyright (c) 1998-2007 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
@@ -160,13 +160,13 @@ png_format_buffer(png_structp png_ptr, png_charp buffer, png_const_charp
}
if (error_message == NULL)
buffer[iout] = 0;
buffer[iout] = '\0';
else
{
buffer[iout++] = ':';
buffer[iout++] = ' ';
png_strncpy(buffer+iout, error_message, 63);
buffer[iout+63] = 0;
buffer[iout+63] = '\0';
}
}