aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.c b/config.c
index 9faa341..b5b283b 100644
--- a/config.c
+++ b/config.c
@@ -62,6 +62,7 @@ config_load(const char *conf_path)
return -1;
}
} else if (strcmp(line, "template") == 0) {
+ value[strlen(value) - 1] = '\0';
tmpl_path = strdup(value);
printf("\ttemplate: %s\n", tmpl_path);
} else if (strcmp(line, "log") == 0) {