diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-29 18:17:05 +0800 | 
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-29 18:17:05 +0800 | 
| commit | da7d7ac9baf93e8e70cd2541a0f91bda4063dbd5 (patch) | |
| tree | ea626de12aca1b3cfd3c5666ac149d2775154d93 | |
| parent | 37118395fe5e62a5085e12eca913f1807d5762ed (diff) | |
Fix infix length calculation
| -rw-r--r-- | pikul.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| @@ -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]);  	} |