commit | 22dd8d350c635fb2ccd4641d19cf43f73cae4f6d | [log] [tgz] |
---|---|---|
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | Fri May 11 11:09:37 2018 +0200 |
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | Sun May 13 22:07:37 2018 +0200 |
tree | 46b2e83fd079428732676a0f88e34be11423d6b8 | |
parent | 9d728570e7a11f2d9abcee99a6e010839dd083a8 [diff] [blame] |
Use STRLEN in two places
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 46098c2..82cda5d 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c
@@ -1307,7 +1307,7 @@ 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;