summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libodbcpp/column.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libodbcpp/column.cpp b/libodbcpp/column.cpp
index c94c25d..b92689c 100644
--- a/libodbcpp/column.cpp
+++ b/libodbcpp/column.cpp
@@ -157,7 +157,7 @@ namespace ODBC {
*buf = (char *)malloc(300);
struct tm t;
t << value;
- return strftime(*buf, sizeof(*buf), fmt, &t);
+ return strftime(*buf, 300, fmt, &t);
}
template <>
int