Patched ctime_r branch.
authorScott Cantor <cantor.2@osu.edu>
Tue, 13 Nov 2007 03:37:14 +0000 (03:37 +0000)
committerScott Cantor <cantor.2@osu.edu>
Tue, 13 Nov 2007 03:37:14 +0000 (03:37 +0000)
shib-target/shib-mlp.cpp

index e34d22d..59f4606 100644 (file)
@@ -79,7 +79,7 @@ const char* ShibMLP::run(const string& is, const IPropertySet* props, std::strin
   time_t now = time(NULL);
 #ifdef HAVE_CTIME_R
   char timebuf[32];
-  insert("now", ctime_r(&now,timebuf));
+  insert("now", ctime_r(&now,timebuf,sizeof(timebuf)));
 #else
   insert("now", ctime(&now));
 #endif