From 0a2747bf69ce039345bebfb65f643589cf7b510f Mon Sep 17 00:00:00 2001 From: Edy Silva Date: Wed, 11 Mar 2026 16:58:39 -0300 Subject: [PATCH] apply review suggestions --- test/test-pipe-getsockname.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test-pipe-getsockname.c b/test/test-pipe-getsockname.c index 07477c080..5f3fb9d21 100644 --- a/test/test-pipe-getsockname.c +++ b/test/test-pipe-getsockname.c @@ -26,6 +26,7 @@ #include #ifndef _WIN32 +# include # include /* close */ #else # include @@ -382,8 +383,8 @@ TEST_IMPL(pipe_getsockname_long_path) { uv_loop_t* loop; size_t len; int r; - char path[254]; - char name[254]; + char path[SOCK_MAXADDRLEN + 1]; + char name[SOCK_MAXADDRLEN + 1]; loop = uv_default_loop(); ASSERT_NOT_NULL(loop);