diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-05-11 11:09:37 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-05-13 22:07:37 +0200 |
commit | 22dd8d350c635fb2ccd4641d19cf43f73cae4f6d (patch) | |
tree | 46b2e83fd079428732676a0f88e34be11423d6b8 /src/tmpfiles | |
parent | Merge pull request #8968 from yuwata/bus-macro-2 (diff) | |
download | systemd-22dd8d350c635fb2ccd4641d19cf43f73cae4f6d.tar.xz systemd-22dd8d350c635fb2ccd4641d19cf43f73cae4f6d.zip |
Use STRLEN in two places
Diffstat (limited to 'src/tmpfiles')
-rw-r--r-- | src/tmpfiles/tmpfiles.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 46098c215c..82cda5db20 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -1307,7 +1307,7 @@ static int item_do(Item *i, int fd, const struct stat *st, fdaction_t action) { r = action(i, fd, st); if (S_ISDIR(st->st_mode)) { - char procfs_path[strlen("/proc/self/fd/") + DECIMAL_STR_MAX(int)]; + char procfs_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int)]; _cleanup_closedir_ DIR *d = NULL; struct dirent *de; |