]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Replace `svfs.f_namelen` with `svfs.f_namemax` (#1924)
authorWong Hoi Sing Edison <hswong3i@gmail.com>
Wed, 19 Jul 2023 08:59:32 +0000 (16:59 +0800)
committerGitHub <noreply@github.com>
Wed, 19 Jul 2023 08:59:32 +0000 (10:59 +0200)
The equivalent for `f_namelen` in struct statvfs is `f_namemax`.

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
libarchive/archive_read_disk_posix.c

index e9657f6a72e8f83400ae1529a7bd6dce02425eef..8d5c32f0385eec363e28227cdb4319ab2ffd1e22 100644 (file)
@@ -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