summaryrefslogtreecommitdiff
path: root/src/basic/fileio.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/fileio.c
parent1142cbd76a1db2adb2c382b76fc0a1c5a97c70cc (diff)
downloadsystemd-fbd0b64f44a7bae678137d67ad5da202f6b8d809.tar.gz
systemd-fbd0b64f44a7bae678137d67ad5da202f6b8d809.tar.bz2
systemd-fbd0b64f44a7bae678137d67ad5da202f6b8d809.zip
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/fileio.c')
-rw-r--r--src/basic/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/fileio.c b/src/basic/fileio.c
index 5296f1cff0..4e02d5b344 100644
--- a/src/basic/fileio.c
+++ b/src/basic/fileio.c
@@ -1472,7 +1472,7 @@ int link_tmpfile(int fd, const char *path, const char *target) {
if (rename_noreplace(AT_FDCWD, path, AT_FDCWD, target) < 0)
return -errno;
} else {
- char proc_fd_path[strlen("/proc/self/fd/") + DECIMAL_STR_MAX(fd) + 1];
+ char proc_fd_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(fd) + 1];
xsprintf(proc_fd_path, "/proc/self/fd/%i", fd);