summaryrefslogtreecommitdiff
path: root/src/basic/xattr-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-12-14 19:02:29 +0100
committerGitHub <noreply@github.com>2017-12-14 19:02:29 +0100
commitfbd0b64f44a7bae678137d67ad5da202f6b8d809 (patch)
tree0402dca4e258583e009d07c0d8eb9c0fad19d5ac /src/basic/xattr-util.c
parent1142cbd76a1db2adb2c382b76fc0a1c5a97c70cc (diff)
downloadsystemd-fbd0b64f44a7bae678137d67ad5da202f6b8d809.tar.gz
tree-wide: make use of new STRLEN() macro everywhere (#7639)
Let's employ coccinelle to do this for us. Follow-up for #7625.
Diffstat (limited to 'src/basic/xattr-util.c')
-rw-r--r--src/basic/xattr-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/xattr-util.c b/src/basic/xattr-util.c
index 28214fcf49..12d04eeffb 100644
--- a/src/basic/xattr-util.c
+++ b/src/basic/xattr-util.c
@@ -105,7 +105,7 @@ int fgetxattr_malloc(int fd, const char *name, char **value) {
}
ssize_t fgetxattrat_fake(int dirfd, const char *filename, const char *attribute, void *value, size_t size, int flags) {
- char fn[strlen("/proc/self/fd/") + DECIMAL_STR_MAX(int) + 1];
+ char fn[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int) + 1];
_cleanup_close_ int fd = -1;
ssize_t l;