about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/template.c b/template.c
index 426f1d0..435769c 100644
--- a/template.c
+++ b/template.c
@@ -99,7 +99,7 @@ int templateRender(
 }
 
 char *templateURL(const char *template, const struct Variable vars[]) {
-	size_t cap = 3 * strlen(template) + 1;
+	size_t cap = strlen(template) + 1;
 	for (const struct Variable *var = vars; var->name; ++var) {
 		cap += 3 * strlen(var->value);
 	}