diff --git a/lib/lws-plat-win.c b/lib/lws-plat-win.c index cdf37e98..a7e285ef 100644 --- a/lib/lws-plat-win.c +++ b/lib/lws-plat-win.c @@ -468,7 +468,7 @@ lws_plat_inet_ntop(int af, const void *src, char *dst, int cnt) DWORD bufferlen = cnt; BOOL ok = FALSE; - buffer = lws_malloc(bufferlen); + buffer = lws_malloc(bufferlen * 2); if (!buffer) { lwsl_err("Out of memory\n"); return NULL;