From 85e4f209cfc3cf374987d9e206e6eda97d4b8bf4 Mon Sep 17 00:00:00 2001 From: randomdan Date: Fri, 11 Feb 2011 11:08:25 +0000 Subject: Fix buffer size to hold a complete date/time --- libpqpp/command.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpqpp/command.cpp') diff --git a/libpqpp/command.cpp b/libpqpp/command.cpp index 28d4f24..be766c9 100644 --- a/libpqpp/command.cpp +++ b/libpqpp/command.cpp @@ -129,9 +129,9 @@ void PQ::Command::bindParamT(unsigned int n, const tm * v) { paramsAtLeast(n); - values[n] = static_cast(malloc(19)); + values[n] = static_cast(malloc(20)); formats[n] = 0; - strftime(values[n], 19, "%F %T", v); + strftime(values[n], 20, "%F %T", v); lengths[n] = 19; } void -- cgit v1.2.3