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



commit 5178a9c568692fac294acb335e1f63957475508c
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]