[glib/wip/resources] Fix non-zero terminated checks in test
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/resources] Fix non-zero terminated checks in test
- Date: Tue, 10 Jan 2012 14:10:00 +0000 (UTC)
commit aad54ef8da2dcab27ebbef208176b5353d00bd04
Author: Alexander Larsson <alexl redhat com>
Date: Tue Jan 10 15:09:40 2012 +0100
Fix non-zero terminated checks in test
gio/tests/resources.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/resources.c b/gio/tests/resources.c
index 0a867cd..3ff569e 100644
--- a/gio/tests/resources.c
+++ b/gio/tests/resources.c
@@ -98,6 +98,7 @@ test_resource (GResource *resource)
g_assert (success);
g_assert (error == NULL);
g_assert (size == 6);
+ buffer[size] = 0;
g_assert_cmpstr (buffer, ==, "test1\n");
g_input_stream_close (in, NULL, NULL);
@@ -271,6 +272,7 @@ test_resource_registred (void)
g_assert (success);
g_assert (error == NULL);
g_assert (size == 6);
+ buffer[size] = 0;
g_assert_cmpstr (buffer, ==, "test1\n");
g_input_stream_close (in, NULL, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]