[libpng15] Made a probably general fix for the preprocessing used to generate

source files. This change might make the check for a special C preprocessor
unnecessary, and it also eliminates the requirement for sed in the
configure build process. NOTE: this is incomplete, a change must also
be made to pnglibconf.mak
This commit is contained in:
John Bowler
2013-02-04 21:53:41 -06:00
committed by Glenn Randers-Pehrson
parent 3051d453ef
commit bc6abe8af8
9 changed files with 322 additions and 189 deletions

View File

@@ -1242,7 +1242,7 @@ test_one_file(PNG_CONST char *inname, PNG_CONST char *outname)
memcpy(tIME_string,
png_convert_to_rfc1123(read_ptr, mod_time),
png_sizeof(tIME_string));
tIME_string[png_sizeof(tIME_string) - 1] = '\0';
tIME_chunk_present++;
#endif /* PNG_TIME_RFC1123_SUPPORTED */