summaryrefslogtreecommitdiffstats
path: root/controller/ctl-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'controller/ctl-config.c')
-rw-r--r--controller/ctl-config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/controller/ctl-config.c b/controller/ctl-config.c
index 580c68c..fe76c90 100644
--- a/controller/ctl-config.c
+++ b/controller/ctl-config.c
@@ -57,8 +57,8 @@ char* CtlConfigSearch(const char *dirList, const char* fileName) {
if (strcasestr(filename, controlFile)) {
char filepath[CONTROL_MAXPATH_LEN];
strncpy(filepath, fullpath, sizeof (filepath));
- strncat(filepath, "/", sizeof (filepath));
- strncat(filepath, filename, sizeof (filepath));
+ strncat(filepath, "/", strlen("/"));
+ strncat(filepath, filename, strlen(filename));
return (strdup(filepath));
}
}