diff options
author | randomdan <randomdan@localhost> | 2011-02-11 11:08:25 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2011-02-11 11:08:25 +0000 |
commit | 85e4f209cfc3cf374987d9e206e6eda97d4b8bf4 (patch) | |
tree | 41bb98f57284bfd61ede9812c603e4ad4b0af158 /libpqpp/command.cpp | |
parent | Fix the build system to do dependencies properly (diff) | |
download | libdbpp-postgresql-85e4f209cfc3cf374987d9e206e6eda97d4b8bf4.tar.bz2 libdbpp-postgresql-85e4f209cfc3cf374987d9e206e6eda97d4b8bf4.tar.xz libdbpp-postgresql-85e4f209cfc3cf374987d9e206e6eda97d4b8bf4.zip |
Fix buffer size to hold a complete date/time
Diffstat (limited to 'libpqpp/command.cpp')
-rw-r--r-- | libpqpp/command.cpp | 4 |
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 |