summaryrefslogtreecommitdiffstats
path: root/tools/setgfid2path/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/setgfid2path/src/main.c')
-rw-r--r--tools/setgfid2path/src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/setgfid2path/src/main.c b/tools/setgfid2path/src/main.c
index 07d7a48b15d..dfa561f4f51 100644
--- a/tools/setgfid2path/src/main.c
+++ b/tools/setgfid2path/src/main.c
@@ -90,7 +90,7 @@ int main(int argc, char **argv)
xxh64
);
- key_size = strlen(GFID2PATH_XATTR_KEY_PREFIX) +
+ key_size = SLEN (GFID2PATH_XATTR_KEY_PREFIX) +
GF_XXH64_DIGEST_LENGTH*2+1;
key = alloca (key_size);
snprintf (key, key_size, GFID2PATH_XATTR_KEY_PREFIX"%s", xxh64);