From 98b2ea15e1266bf984800f5ee0a057452791339d Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 23 Mar 2017 02:31:54 -0400 Subject: [PATCH] do not make DaysInMonth static Since the Feb month is written to based on arguments to this function, it makes it not safe to use simultaneously. Drop the static markings. --- libarchive/archive_getdate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libarchive/archive_getdate.c b/libarchive/archive_getdate.c index beb0cba2e..fe43ae820 100644 --- a/libarchive/archive_getdate.c +++ b/libarchive/archive_getdate.c @@ -691,7 +691,7 @@ Convert(time_t Month, time_t Day, time_t Year, time_t Hours, time_t Minutes, time_t Seconds, time_t Timezone, enum DSTMODE DSTmode) { - static int DaysInMonth[12] = { + int DaysInMonth[12] = { 31, 0, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; time_t Julian; -- 2.47.2