From: Fabian Keil Date: Sat, 24 Nov 2012 13:57:30 +0000 (+0000) Subject: Reduce indirection in parse_header_time() X-Git-Tag: v_3_0_20~168 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=5ef6a84243b94b2a219048d44c3cb45193abd27f Reduce indirection in parse_header_time() --- diff --git a/parsers.c b/parsers.c index c520d0a3..2f3b4f42 100644 --- a/parsers.c +++ b/parsers.c @@ -1,4 +1,4 @@ -const char parsers_rcs[] = "$Id: parsers.c,v 1.263 2012/11/11 12:38:42 fabiankeil Exp $"; +const char parsers_rcs[] = "$Id: parsers.c,v 1.264 2012/11/11 12:41:12 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/parsers.c,v $ @@ -4125,7 +4125,7 @@ static jb_err parse_header_time(const char *header_time, time_t *result) * attempt to work around GNU libc's strptime() * reporting negative year values when using %Y. */ - static const char * const time_formats[] = { + static const char time_formats[][22] = { /* Tue, 02-Jun-37 20:00:00 */ "%a, %d-%b-%y %H:%M:%S", /* Tue, 02 Jun 2037 20:00:00 */