From d2c2f52a23fea2378d2956607a6685552ac5cc89 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Wed, 27 Feb 2013 09:44:21 +0100 Subject: [PATCH] Fixed wrong function called. --- src/dateTime.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dateTime.cpp b/src/dateTime.cpp index 58680791..a0c03ede 100644 --- a/src/dateTime.cpp +++ b/src/dateTime.cpp @@ -659,8 +659,8 @@ datetime::datetime(const time_t t, const int zone) #if VMIME_HAVE_LOCALTIME_S struct tm tms; - if (!gmtime_r(&tms, &t)) - localtime_r(&tms, &t); + if (!gmtime_s(&tms, &t)) + localtime_s(&tms, &t); #elif VMIME_HAVE_LOCALTIME_R struct tm tms;