aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/fusermount.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/fusermount.c b/util/fusermount.c
index 86b7c6c..77e808e 100644
--- a/util/fusermount.c
+++ b/util/fusermount.c
@@ -478,6 +478,7 @@ static int do_mount(const char *mnt, const char *type, mode_t rootmode,
if (*s)
s++;
}
+ *d = '\0';
res = get_mnt_opts(flags, optbuf, &mnt_opts);
if (res == -1) {
free(mnt_opts);