Use STRLEN in two places

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2018-05-13 22:07:37 +02:00
parent 9d728570e7
commit 22dd8d350c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -242,7 +242,7 @@ int fchmod_umask(int fd, mode_t m) {
}
int fchmod_opath(int fd, mode_t m) {
char procfs_path[strlen("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
char procfs_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
/* This function operates also on fd that might have been opened with
* O_PATH. Indeed fchmodat() doesn't have the AT_EMPTY_PATH flag like