diff options
author | Vincent Richard <[email protected]> | 2013-02-27 08:44:21 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2013-02-27 08:44:21 +0000 |
commit | d2c2f52a23fea2378d2956607a6685552ac5cc89 (patch) | |
tree | b7012079236a8fd4054764e93d5e6906e5085ac6 | |
parent | Use secure versions of time/string functions on Windows. (diff) | |
download | vmime-d2c2f52a23fea2378d2956607a6685552ac5cc89.tar.gz vmime-d2c2f52a23fea2378d2956607a6685552ac5cc89.zip |
Fixed wrong function called.
-rw-r--r-- | src/dateTime.cpp | 4 |
1 files 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; |