diff --git a/sbin/mount/getmntopts.c b/sbin/mount/getmntopts.c index 583d154f4793..f0cd27c058a7 100644 --- a/sbin/mount/getmntopts.c +++ b/sbin/mount/getmntopts.c @@ -78,7 +78,7 @@ getmntopts(options, m0, flagp, altflagp) */ p = strchr(opt, '='); if (p) - *p = '\0'; + *++p = '\0'; /* Scan option table. */ for (m = m0; m->m_option != NULL; ++m) { diff --git a/sbin/mount_ifs/getmntopts.c b/sbin/mount_ifs/getmntopts.c index 583d154f4793..f0cd27c058a7 100644 --- a/sbin/mount_ifs/getmntopts.c +++ b/sbin/mount_ifs/getmntopts.c @@ -78,7 +78,7 @@ getmntopts(options, m0, flagp, altflagp) */ p = strchr(opt, '='); if (p) - *p = '\0'; + *++p = '\0'; /* Scan option table. */ for (m = m0; m->m_option != NULL; ++m) {