[libpng15] Revised comment and whitespace in png_convert_to_rfc1123().

This commit is contained in:
Glenn Randers-Pehrson 2011-11-19 18:04:01 -06:00
parent 29fca795b9
commit 925a60278e

4
png.c
View File

@ -599,7 +599,7 @@ png_convert_to_rfc1123(png_structp png_ptr, png_const_timep ptime)
if (png_ptr == NULL) if (png_ptr == NULL)
return (NULL); return (NULL);
if (ptime->year > 9999 || /* RFC1123 limitation */ if (ptime->year > 9999 /* RFC1123 limitation */ ||
ptime->month == 0 || ptime->month > 12 || ptime->month == 0 || ptime->month > 12 ||
ptime->day == 0 || ptime->day > 31 || ptime->day == 0 || ptime->day > 31 ||
ptime->hour > 23 || ptime->minute > 59 || ptime->hour > 23 || ptime->minute > 59 ||
@ -611,7 +611,7 @@ png_convert_to_rfc1123(png_structp png_ptr, png_const_timep ptime)
{ {
size_t pos = 0; size_t pos = 0;
char number_buf[5]; /* enough for a five-digit year */ char number_buf[5]; /* enough for a four-digit year */
# define APPEND_STRING(string)\ # define APPEND_STRING(string)\
pos = png_safecat(png_ptr->time_buffer, sizeof png_ptr->time_buffer,\ pos = png_safecat(png_ptr->time_buffer, sizeof png_ptr->time_buffer,\