diff options
| -rw-r--r-- | tests/ws.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ // -// Copyright 2018 Staysail Systems, Inc. <info@staysail.tech> +// Copyright 2019 Staysail Systems, Inc. <info@staysail.tech> // Copyright 2018 Capitar IT Group BV <info@capitar.com> // // This software is supplied under the terms of the MIT License, a @@ -171,7 +171,7 @@ TestMain("WebSocket Transport", { So(nng_listener_getopt_int( l1, NNG_OPT_TCP_BOUND_PORT, &port) == 0); So(port != 0); - snprintf(ws_url, 1023, "ws://*:%d/two", port); + snprintf(ws_url, sizeof(ws_url), "ws://*:%d/two", port); So(nng_listen(s2, ws_url, NULL, 0) == 0); }); |
