diff options
Diffstat (limited to 'lib/core-net')
-rw-r--r-- | lib/core-net/client/conmon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/core-net/client/conmon.c b/lib/core-net/client/conmon.c index 0fb716bd..21f67c96 100644 --- a/lib/core-net/client/conmon.c +++ b/lib/core-net/client/conmon.c @@ -96,7 +96,7 @@ lws_conmon_append_copy_new_dns_results(struct lws *wsi, size_t cl = cai->ai_canonname ? strlen(cai->ai_canonname) + 1 : 0; - ai = lws_malloc(al + cl, __func__); + ai = lws_malloc(al + cl + 1, __func__); if (!ai) { lwsl_wsi_warn(wsi, "OOM"); return 1; |