summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-09-21 18:00:21 +0000
committerrandomdan <randomdan@localhost>2010-09-21 18:00:21 +0000
commite4392c05bbb01b9b08ddb769245fbfbd8801c0b6 (patch)
treecbb0a9b9d40d067c477b88864db597188d2b6867
parentCorrect size of sqlstatus buffer (diff)
downloadlibdbpp-odbc-e4392c05bbb01b9b08ddb769245fbfbd8801c0b6.tar.bz2
libdbpp-odbc-e4392c05bbb01b9b08ddb769245fbfbd8801c0b6.tar.xz
libdbpp-odbc-e4392c05bbb01b9b08ddb769245fbfbd8801c0b6.zip
Fix handling of strings containing multibyte characters
-rw-r--r--libodbcpp/column.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libodbcpp/column.cpp b/libodbcpp/column.cpp
index 828b4bc..73bb727 100644
--- a/libodbcpp/column.cpp
+++ b/libodbcpp/column.cpp
@@ -112,7 +112,7 @@ const Glib::ustring &
ODBC::CharArrayColumn::compose() const
{
if (!composeCache) {
- composeCache = new Glib::ustring(&data.front(), bindLen);
+ composeCache = new Glib::ustring(&data.front(), &data[bindLen]);
}
return *composeCache;
}