summaryrefslogtreecommitdiffstats
path: root/filescan-utils.c
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-08-30 10:32:38 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-12-13 14:12:02 +0100
commit4fce6e6c6e247af810118215b1238add9f6f61fb (patch)
tree40f63936a2adc46eb7257cb98949d8981e4614b8 /filescan-utils.c
parente6fbb41fea0e7e4dcc58d7304fe68229d86b3cb7 (diff)
Rename back define variable.
Change-Id: Ie0d40f08230170ef780c46748889e153618d1c44 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 f1de9d0..3eb1b50 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[MAXPATH_LEN];
+ char newpath[CONTROL_MAXPATH_LEN];
if (dirEnt->d_name[0]=='.' || dirEnt->d_name[0]=='_') continue;
strncpy(newpath, searchPath, sizeof(newpath));