X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fnfsumount.c;h=3538d88036210ee4f00f6ae67b71f3af226c76a8;hp=b846564a331e41da2c178f2cf280b84eded197ab;hb=2cbf5fd54ec622bbb420fe5f0584b5f5edf7dc72;hpb=34ee5730f35ec6a5c3c6a29d9ecafe40df95b498 diff --git a/utils/mount/nfsumount.c b/utils/mount/nfsumount.c index b846564..3538d88 100644 --- a/utils/mount/nfsumount.c +++ b/utils/mount/nfsumount.c @@ -161,7 +161,8 @@ static int nfs_umount_is_vers4(const struct mntentchn *mc) goto not_found; do { - int nlen = strlen(pmc->m.mnt_fsname); + size_t nlen = strlen(pmc->m.mnt_fsname); + /* * It's possible the mount location string in /proc/mounts * ends with a '/'. In this case, if the entry came from