[tracker/dbus-fd-experiment-gio: 4/6] Steroids server: Always terminate sent strings with \0



commit 9d913b9c6f73a33734d047901566c0d43c5cdca9
Author: Adrien Bustany <abustany gnome org>
Date:   Thu Jun 10 12:33:33 2010 -0400

    Steroids server: Always terminate sent strings with \0

 src/tracker-store/tracker-steroids.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-store/tracker-steroids.c b/src/tracker-store/tracker-steroids.c
index 57f5d09..d3eb749 100644
--- a/src/tracker-store/tracker-steroids.c
+++ b/src/tracker-store/tracker-steroids.c
@@ -340,6 +340,10 @@ query_inthread (TrackerDBCursor *cursor,
 			                                 column_data[i] ? column_data[i] : "",
 			                                 NULL,
 			                                 &loop_error);
+			g_data_output_stream_put_byte (data_output_stream,
+			                               0,
+			                               NULL,
+			                               &loop_error);
 
 			if (loop_error) {
 				goto end_query_inthread;



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