gio/tests/socket: fix one of the new tests

One of the recently-added tests was using g_test_cmpstr() on a buffer
containing a string that wasn't necessarily 0-terminated.
This commit is contained in:
Dan Winship 2014-12-14 08:04:27 -05:00
parent 1a2a689dea
commit b6d1c66c50

View File

@ -491,6 +491,7 @@ test_ip_sync (GSocketFamily family)
g_assert_no_error (error);
g_assert_cmpint (len, ==, strlen (testbuf2));
memset (buf, 0, sizeof (buf));
len = g_socket_receive (client, buf, sizeof (buf), NULL, &error);
g_assert_no_error (error);
g_assert_cmpint (len, ==, strlen (testbuf2));