From abf2444f0921599fe370b2405f5feed1f27b487f Mon Sep 17 00:00:00 2001 From: Keith Williams Date: Tue, 18 Apr 2023 22:27:06 +0100 Subject: [PATCH] remove c99 extention from c++11 code --- tests/test_wss_transport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_wss_transport.cpp b/tests/test_wss_transport.cpp index 7865ab67..64165ab4 100644 --- a/tests/test_wss_transport.cpp +++ b/tests/test_wss_transport.cpp @@ -124,7 +124,7 @@ const char *cert = void test_roundtrip () { - char connect_address[MAX_SOCKET_STRING + strlen ("/roundtrip")]; + char connect_address[MAX_SOCKET_STRING + sizeof ("/roundtrip") - 1]; size_t addr_length = sizeof (connect_address); void *sb = test_context_socket (ZMQ_REP); zmq_setsockopt (sb, ZMQ_WSS_CERT_PEM, cert, strlen (cert));