summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-29 18:17:05 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-29 18:17:05 +0800
commitda7d7ac9baf93e8e70cd2541a0f91bda4063dbd5 (patch)
treeea626de12aca1b3cfd3c5666ac149d2775154d93
parent37118395fe5e62a5085e12eca913f1807d5762ed (diff)
Fix infix length calculation
-rw-r--r--pikul.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pikul.c b/pikul.c
index feddbf0..76e815f 100644
--- a/pikul.c
+++ b/pikul.c
@@ -395,7 +395,7 @@ char *pikul_shopify(char *origins[], char *destinations[], long grams)
const size_t json_len = strlen(json);
json = realloc(json, json_len + rate_len + 1);
strlcpy(&json[json_len], rate, rate_len + 1);
- infix_len += rate_len - i++ ? 0 : strlen(",");
+ infix_len += rate_len - (i++ ? 0 : strlen(","));
}
pikul_free_services(services[company]);
}