diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-15 08:57:06 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-15 08:57:06 +0800 |
commit | e3141f7969a75d363a173f9e2ae07da67753c4da (patch) | |
tree | 285da1f54dd012021fee00254f025a16f41429d6 /shopify.c | |
parent | dacf25e962238c679c69b77a915689cdf72416d5 (diff) |
ampersand -> ampersand_len
Diffstat (limited to 'shopify.c')
-rw-r--r-- | shopify.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |