summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpqpp/command.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpqpp/command.cpp b/libpqpp/command.cpp
index be766c9..eb5a6bf 100644
--- a/libpqpp/command.cpp
+++ b/libpqpp/command.cpp
@@ -121,9 +121,9 @@ void
PQ::Command::bindParamS(unsigned int n, const Glib::ustring & s)
{
paramsAtLeast(n);
- values[n] = strndup(s.c_str(), s.length());
+ values[n] = strndup(s.c_str(), s.bytes());
formats[n] = 0;
- lengths[n] = s.length();
+ lengths[n] = s.bytes();
}
void
PQ::Command::bindParamT(unsigned int n, const tm * v)