[tracker/unicode-case-fold: 1/2] libtracker-data: Specify how many bytes are ok in libunistring's case



commit 0768b2a7a4a8f161f9c2234438a3e995a767561c
Author: Philip Van Hoof <philip codeminded be>
Date:   Mon Mar 28 17:58:04 2011 +0200

    libtracker-data: Specify how many bytes are ok in libunistring's case

 src/libtracker-data/tracker-db-interface-sqlite.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-db-interface-sqlite.c b/src/libtracker-data/tracker-db-interface-sqlite.c
index c435d4f..455e5e9 100644
--- a/src/libtracker-data/tracker-db-interface-sqlite.c
+++ b/src/libtracker-data/tracker-db-interface-sqlite.c
@@ -558,7 +558,7 @@ function_sparql_lower_case (sqlite3_context *context,
 
 	zOutput = u16_tolower (zInput, nInput/2, NULL, NULL, NULL, &written);
 
-	sqlite3_result_text16 (context, zOutput, -1, free);
+	sqlite3_result_text16 (context, zOutput, written * 2, free);
 }
 
 #elif HAVE_LIBICU



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]