summaryrefslogtreecommitdiffstats
path: root/xlators/features/index
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/index')
-rw-r--r--xlators/features/index/src/index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/index/src/index.c b/xlators/features/index/src/index.c
index 86c21e9aa83..3a518248c13 100644
--- a/xlators/features/index/src/index.c
+++ b/xlators/features/index/src/index.c
@@ -1081,7 +1081,7 @@ index_inode_path (xlator_t *this, inode_t *inode, char *dirpath, size_t len)
}
make_index_dir_path (priv->index_basepath, ENTRY_CHANGES_SUBDIR,
dirpath, len);
- if (len <= strlen (dirpath) + 1 /*'/'*/ + strlen (UUID0_STR)) {
+ if (len <= strlen (dirpath) + 1 /*'/'*/ + SLEN (UUID0_STR)) {
ret = -EINVAL;
goto out;
}