evil: fix incorrect function call.
authorChunEon Park <hermet@hermet.pe.kr>
Thu, 20 Aug 2015 05:25:15 +0000 (14:25 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Thu, 20 Aug 2015 05:28:20 +0000 (14:28 +0900)
_localtime64_s() requires _time64_t as one argument but here we passes time_s.
Proper api is localtime_s().

src/lib/evil/evil_time.c

index 9e6fd5c..6964654 100644 (file)
@@ -13,7 +13,7 @@
 struct tm *
 evil_localtime_r(const time_t *timep, struct tm *result)
 {
-   _localtime64_s(result, timep);
+   localtime_s(result, timep);
 
    return result;
 }