Skip to content

Commit

Permalink
windows, at least vs2010 debug was unhappy with timettostring we had …
Browse files Browse the repository at this point in the history
…a buf len specified that did not match callers length
  • Loading branch information
dwight committed Jul 24, 2010
1 parent e1cdf39 commit 75be526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bson/util/misc.h
Expand Up @@ -27,7 +27,7 @@ namespace mongo {

inline void time_t_to_String(time_t t, char *buf) {
#if defined(_WIN32)
ctime_s(buf, 64, &t);
ctime_s(buf, 32, &t);
#else
ctime_r(&t, buf);
#endif
Expand Down

0 comments on commit 75be526

Please sign in to comment.