summaryrefslogtreecommitdiffstats
path: root/filescan-utils.c
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-08-29 10:47:16 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-08-29 10:47:16 +0200
commit0bca3748692ae2441be6d0fef2b5677ff2a4f340 (patch)
treeb78fc3ae74ed47c873537ac596848467e14962b4 /filescan-utils.c
parent1860c197a402f76f960eb2e373daf1259592cb67 (diff)
Fix: set default value if missing defined var
Change-Id: I93f8546e2cfe7fc11fdf0f956f10429f6c0ad8d0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'filescan-utils.c')
-rw-r--r--filescan-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/filescan-utils.c b/filescan-utils.c
index 46e461b..e735682 100644
--- a/filescan-utils.c
+++ b/filescan-utils.c
@@ -45,7 +45,7 @@ PUBLIC json_object* ScanForConfig (const char* searchPath, CtlScanDirModeT mode,
// recursively search embedded directories ignoring any directory starting by '.' or '_'
if (dirEnt->d_type == DT_DIR && mode == CTL_SCAN_RECURSIVE) {
- char newpath[CONTROL_MAXPATH_LEN];
+ char newpath[MAXPATH_LEN];
if (dirEnt->d_name[0]=='.' || dirEnt->d_name[0]=='_') continue;
strncpy(newpath, searchPath, sizeof(newpath));