--- a/contrib/metis/GKlib/string.c
+++ b/contrib/metis/GKlib/string.c
@@ -503,7 +503,7 @@
 
   memset(&time, '\0', sizeof(time));
   
-  if (strptime(str, "%m/%d/%Y %H:%M:%S", &time) == NULL)
+  if (strftime(str, 21, "%m/%d/%Y %H:%M:%S", &time) == NULL)
     return -1;
 
   rtime = mktime(&time);
