From 0b867b190ab638b1f828214330d99969ff4f4c08 Mon Sep 17 00:00:00 2001 From: ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ 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.3