mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
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:
parent
1a2a689dea
commit
b6d1c66c50
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user