From 0b867b190ab638b1f828214330d99969ff4f4c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Thu, 22 Sep 2022 13:29:36 +0800 Subject: Fix previous commit --- shopify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shopify.c b/shopify.c index fe7f52b..a3495c3 100644 --- a/shopify.c +++ b/shopify.c @@ -329,8 +329,8 @@ static enum MHD_Result handle_request(void *cls, struct MHD_Connection *con, (unsigned char *)host, strlen(host) }, &result); - *dec_host = malloc(result.size + 1); - strlcpy(*dec_host, (const char *)result.data, result.size + 1); + dec_host = malloc(result.size + 1); + strlcpy(dec_host, (const char *)result.data, result.size + 1); gnutls_free(result.data); } -- cgit v1.2.3