summaryrefslogtreecommitdiff
path: root/guardian.c
diff options
context:
space:
mode:
Diffstat (limited to 'guardian.c')
-rw-r--r--guardian.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/guardian.c b/guardian.c
index 5b5c99d..ba9fdb2 100644
--- a/guardian.c
+++ b/guardian.c
@@ -307,7 +307,7 @@ struct template * * load_templates() {
/*ensures that templates is alteast 1 element big*/
struct template * * templates = (struct template * *)malloc(sizeof(struct template * ));
/*opens templates dir*/
- DIR * templates_dir = opendir("templates");
+ DIR * templates_dir = opendir("/etc/guardian/templates");
if (templates_dir == NULL) {
return NULL;
}
@@ -327,7 +327,7 @@ struct template * * load_templates() {
/* since d_name is just the name of the file and we want
* the full path
*/
- char * fullpath = str_concat("templates/",
+ char * fullpath = str_concat("/etc/guardian/templates/",
entry->d_name);
if (fullpath == NULL) {
return NULL;