diff options
author | randomdan <randomdan@localhost> | 2010-09-21 18:00:21 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2010-09-21 18:00:21 +0000 |
commit | e4392c05bbb01b9b08ddb769245fbfbd8801c0b6 (patch) | |
tree | cbb0a9b9d40d067c477b88864db597188d2b6867 /libodbcpp | |
parent | Correct size of sqlstatus buffer (diff) | |
download | libdbpp-odbc-e4392c05bbb01b9b08ddb769245fbfbd8801c0b6.tar.bz2 libdbpp-odbc-e4392c05bbb01b9b08ddb769245fbfbd8801c0b6.tar.xz libdbpp-odbc-e4392c05bbb01b9b08ddb769245fbfbd8801c0b6.zip |
Fix handling of strings containing multibyte characters
Diffstat (limited to 'libodbcpp')
-rw-r--r-- | libodbcpp/column.cpp | 2 |
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; } |