From 925a60278e7d25a06ac0410c27d9e3244a5fd8f2 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Sat, 19 Nov 2011 18:04:01 -0600 Subject: [PATCH] [libpng15] Revised comment and whitespace in png_convert_to_rfc1123(). --- png.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/png.c b/png.c index 69fe44234..469351de2 100644 --- a/png.c +++ b/png.c @@ -599,10 +599,10 @@ png_convert_to_rfc1123(png_structp png_ptr, png_const_timep ptime) if (png_ptr == NULL) return (NULL); - if (ptime->year > 9999 || /* RFC1123 limitation */ - ptime->month == 0 || ptime->month > 12 || - ptime->day == 0 || ptime->day > 31 || - ptime->hour > 23 || ptime->minute > 59 || + if (ptime->year > 9999 /* RFC1123 limitation */ || + ptime->month == 0 || ptime->month > 12 || + ptime->day == 0 || ptime->day > 31 || + ptime->hour > 23 || ptime->minute > 59 || ptime->second > 60) { png_warning(png_ptr, "Ignoring invalid time value"); @@ -611,7 +611,7 @@ png_convert_to_rfc1123(png_structp png_ptr, png_const_timep ptime) { 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)\ pos = png_safecat(png_ptr->time_buffer, sizeof png_ptr->time_buffer,\