summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mount.cifs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mount.cifs.c b/mount.cifs.c
index 2474e98..ff07232 100644
--- a/mount.cifs.c
+++ b/mount.cifs.c
@@ -1245,6 +1245,7 @@ nocopy:
out_len++;
}
snprintf(out + out_len, word_len + 5, "gid=%s", txtbuf);
+ out_len = strlen(out);
}
if (got_bkupuid) {
word_len = snprintf(txtbuf, sizeof(txtbuf), "%u", bkupuid);
@@ -1276,6 +1277,7 @@ nocopy:
out_len++;
}
snprintf(out + out_len, word_len + 11, "backupgid=%s", txtbuf);
+ out_len = strlen(out);
}
if (got_snapshot) {
word_len = snprintf(txtbuf, sizeof(txtbuf), "%llu", snapshot);
@@ -1291,6 +1293,7 @@ nocopy:
out_len++;
}
snprintf(out + out_len, word_len + 11, "snapshot=%s", txtbuf);
+ out_len = strlen(out);
}
return 0;