summaryrefslogtreecommitdiff
path: root/libpqpp/command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libpqpp/command.cpp')
-rw-r--r--libpqpp/command.cpp4
1 files changed, 2 insertions, 2 deletions
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<char *>(malloc(19));
+ values[n] = static_cast<char *>(malloc(20));
formats[n] = 0;
- strftime(values[n], 19, "%F %T", v);
+ strftime(values[n], 20, "%F %T", v);
lengths[n] = 19;
}
void