--- src/sbin/mount/getmntopts.c 2003/09/28 14:39:18 1.3 +++ src/sbin/mount/getmntopts.c 2004/09/06 01:19:07 1.4 @@ -53,7 +53,7 @@ getmntopts(const char *options, const st int *altflagp) { const struct mntopt *m; - int negative, len; + int negative; char *opt, *optbuf, *p; int *thisflagp; @@ -79,11 +79,7 @@ getmntopts(const char *options, const st /* Scan option table. */ for (m = m0; m->m_option != NULL; ++m) { - len = strlen(m->m_option); - if (strncasecmp(opt, m->m_option, len) == 0) - if ( m->m_option[len] == '\0' - || m->m_option[len] == '=' - ) + if (strcasecmp(opt, m->m_option) == 0) break; }