From e3141f7969a75d363a173f9e2ae07da67753c4da 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, 15 Sep 2022 08:57:06 +0800 Subject: ampersand -> ampersand_len --- shopify.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'shopify.c') diff --git a/shopify.c b/shopify.c index ce6d331..f8f8ae2 100644 --- a/shopify.c +++ b/shopify.c @@ -124,13 +124,13 @@ bool shopify_valid(struct MHD_Connection *conn, const char *url, const char *val = (*params)[i].val; if (strcmp(key, "hmac")) { size_t query_len = query ? strlen(query) : 0; - bool ampersand = i != nparams - 1; + bool ampersand_len = i != nparams - 1; query = realloc(query, query_len + strlen(key) - + strlen("=") + strlen(val) + ampersand - + 1); + + strlen("=") + strlen(val) + + ampersand_len + 1); query[query_len] = '\0'; sprintf(query, "%s%s=%s%s", query, key, val, - ampersand ? "&" : ""); + ampersand_len ? "&" : ""); } } char *hmac = NULL; -- cgit v1.2.3