diff --git a/sys/compat/osf1/osf1_cvt.c b/sys/compat/osf1/osf1_cvt.c index afe864a1da47..a50d2d9a109e 100644 --- a/sys/compat/osf1/osf1_cvt.c +++ b/sys/compat/osf1/osf1_cvt.c @@ -1,4 +1,4 @@ -/* $NetBSD: osf1_cvt.c,v 1.22 2007/06/16 20:04:28 dsl Exp $ */ +/* $NetBSD: osf1_cvt.c,v 1.23 2007/07/17 20:41:23 christos Exp $ */ /* * Copyright (c) 1999 Christopher G. Demetriou. All rights reserved. @@ -58,7 +58,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: osf1_cvt.c,v 1.22 2007/06/16 20:04:28 dsl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: osf1_cvt.c,v 1.23 2007/07/17 20:41:23 christos Exp $"); #include #include @@ -627,11 +627,11 @@ osf1_cvt_statfs_from_native(bsfs, osfs) { memset(osfs, 0, sizeof (struct osf1_statfs)); - if (!strncmp(MOUNT_FFS, bsfs->f_fstypename, MFSNAMELEN)) + if (!strncmp(MOUNT_FFS, bsfs->f_fstypename, sizeof(bsfs->fs_fstypename))) osfs->f_type = OSF1_MOUNT_UFS; - else if (!strncmp(MOUNT_NFS, bsfs->f_fstypename, MFSNAMELEN)) + else if (!strncmp(MOUNT_NFS, bsfs->f_fstypename, sizeof(bsfs->fs_fstypename))) osfs->f_type = OSF1_MOUNT_NFS; - else if (!strncmp(MOUNT_MFS, bsfs->f_fstypename, MFSNAMELEN)) + else if (!strncmp(MOUNT_MFS, bsfs->f_fstypename, sizeof(bsfs->fs_fstypename))) osfs->f_type = OSF1_MOUNT_MFS; else /* uh oh... XXX = PC, CDFS, PROCFS, etc. */