[gedit/docstream2: 9/16] Fix 0 termination of output in test



commit 023e7865484d6cce2a086524ea8402567f9a33db
Author: Jesse van den Kieboom <jesse icecrew nl>
Date:   Sat Jan 23 12:35:27 2010 +0100

    Fix 0 termination of output in test

 tests/document-input-stream.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tests/document-input-stream.c b/tests/document-input-stream.c
index 06c7f06..edcad1d 100644
--- a/tests/document-input-stream.c
+++ b/tests/document-input-stream.c
@@ -57,6 +57,8 @@ test_consecutive_read (const gchar *inbuf,
 
 	g_assert_cmpint (n, >, 0);
 
+	b[n] = '\0';
+
 	g_assert_cmpstr (b, ==, outbuf);
 }
 



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