From 5ef6a84243b94b2a219048d44c3cb45193abd27f Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 24 Nov 2012 13:57:30 +0000 Subject: [PATCH] Reduce indirection in parse_header_time() --- parsers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.49.0