From: Wong Hoi Sing Edison Date: Wed, 19 Jul 2023 08:59:32 +0000 (+0800) Subject: Replace `svfs.f_namelen` with `svfs.f_namemax` (#1924) X-Git-Tag: v3.7.1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd074c2531e867078788fe8539376c31119e4e55;p=thirdparty%2Flibarchive.git Replace `svfs.f_namelen` with `svfs.f_namemax` (#1924) The equivalent for `f_namelen` in struct statvfs is `f_namemax`. Signed-off-by: Wong Hoi Sing Edison --- diff --git a/libarchive/archive_read_disk_posix.c b/libarchive/archive_read_disk_posix.c index e9657f6a7..8d5c32f03 100644 --- a/libarchive/archive_read_disk_posix.c +++ b/libarchive/archive_read_disk_posix.c @@ -1866,7 +1866,7 @@ setup_current_filesystem(struct archive_read_disk *a) #if defined(USE_READDIR_R) /* Set maximum filename length. */ #if defined(HAVE_STATVFS) - t->current_filesystem->name_max = svfs.f_namelen; + t->current_filesystem->name_max = svfs.f_namemax; #else t->current_filesystem->name_max = sfs.f_namelen; #endif