Author: dreiss
Date: Thu May 21 02:28:14 2009
New Revision: 776925
URL: http://svn.apache.org/viewvc?rev=776925&view=rev
Log:
cpp: Fix an OpenBSD compilation error that appears to be a real bug
The (Linux) man page for ctime_r states pretty clearly that
the buffer it uses must have space for at least 26 characters.
Modified:
incubator/thrift/trunk/lib/cpp/src/Thrift.h
Modified: incubator/thrift/trunk/lib/cpp/src/Thrift.h
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/cpp/src/Thrift.h?rev=776925&r1=776924&r2=776925&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/cpp/src/Thrift.h (original)
+++ incubator/thrift/trunk/lib/cpp/src/Thrift.h Thu May 21 02:28:14 2009
@@ -65,7 +65,7 @@
inline static void errorTimeWrapper(const char* msg) {
time_t now;
- char dbgtime[25];
+ char dbgtime[26];
time(&now);
ctime_r(&now, dbgtime);
dbgtime[24] = 0;