From e4392c05bbb01b9b08ddb769245fbfbd8801c0b6 Mon Sep 17 00:00:00 2001 From: randomdan Date: Tue, 21 Sep 2010 18:00:21 +0000 Subject: Fix handling of strings containing multibyte characters --- libodbcpp/column.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3