From 34c8b047ea4822be5254bacf3af94d1643b83ba8 Mon Sep 17 00:00:00 2001 From: def Date: Sat, 22 Jul 2017 21:20:15 +0200 Subject: [PATCH] Oldschool C please --- src/base/system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/system.c b/src/base/system.c index fe2a81b09..ffba556b8 100644 --- a/src/base/system.c +++ b/src/base/system.c @@ -1160,11 +1160,11 @@ NETSOCKET net_udp_create(NETADDR bindaddr) if(bindaddr.type&NETTYPE_WEBSOCKET_IPV4) { int socket = -1; + char addr_str[NETADDR_MAXSTRSIZE]; /* bind, we should check for error */ tmpbindaddr.type = NETTYPE_WEBSOCKET_IPV4; - char addr_str[NETADDR_MAXSTRSIZE]; net_addr_str(&tmpbindaddr, addr_str, sizeof(addr_str), 0); socket = websocket_create(addr_str, tmpbindaddr.port);