aboutsummaryrefslogtreecommitdiff
path: root/src/template.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/template.c')
-rw-r--r--src/template.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/template.c b/src/template.c
index 73b21e4..6773986 100644
--- a/src/template.c
+++ b/src/template.c
@@ -32,12 +32,12 @@
extern msg_t *msg;
template_t *
-template_create(void)
+template_create(char *template_name)
{
template_t *template = malloc(sizeof(template_t));
char *path;
- asprintf(&path, "%s/%s/%s", msg->base_directory, TEMPLATES, BASE_TEMPLATE);
+ asprintf(&path, "%s/%s/%s", msg->base_directory, TEMPLATES, template_name);
FILE *base = fopen(path, "r");
free(path);