ext/libuv/test/test-pipe-getsockname.c in libuv-2.0.6 vs ext/libuv/test/test-pipe-getsockname.c in libuv-2.0.8

- old
+ new

@@ -112,9 +112,10 @@ len = sizeof buf; r = uv_pipe_getsockname(&pipe_server, buf, &len); ASSERT(r == 0); ASSERT(buf[len - 1] != 0); + ASSERT(buf[len] == '\0'); ASSERT(memcmp(buf, TEST_PIPENAME, len) == 0); len = sizeof buf; r = uv_pipe_getpeername(&pipe_server, buf, &len); ASSERT(r == UV_ENOTCONN);