summaryrefslogtreecommitdiff
path: root/src/basic/fileio.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-12-14 19:02:29 +0100
committerSven Eden <yamakuzure@gmx.net>2018-05-30 07:49:35 +0200
commit2205140c2dca028beb4870267b98bd6c76d07385 (patch)
treedc8242feb8b3347a49ff8b497f948914408ed534 /src/basic/fileio.c
parent3e57e6c7203e7a659bb4b3cca3bc7383488787a2 (diff)
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 0b3527de7..5a918c1e7 100644
--- a/src/basic/fileio.c
+++ b/src/basic/fileio.c
@@ -1483,7 +1483,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);