summaryrefslogtreecommitdiffstats
path: root/sbin/mount/getmntopts.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/mount/getmntopts.c')
-rw-r--r--sbin/mount/getmntopts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/mount/getmntopts.c b/sbin/mount/getmntopts.c
index 583d154..f0cd27c 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) {
OpenPOWER on IntegriCloud