diff options
author | Pavel Shilovsky <pshilov@microsoft.com> | 2020-12-09 11:29:40 -0800 |
---|---|---|
committer | Pavel Shilovsky <pshilov@microsoft.com> | 2020-12-16 15:51:27 -0800 |
commit | 7156c6eca0fcf3d4a2fd2f8677b2622475c5c46e (patch) | |
tree | 5d297c2e80184daf063bd9414b4698c3ee4f5134 /mount.cifs.c | |
parent | 8f46aaadffde42ef0c89e97c0443ee7944708d94 (diff) | |
download | cifs-utils-7156c6eca0fcf3d4a2fd2f8677b2622475c5c46e.tar.gz cifs-utils-7156c6eca0fcf3d4a2fd2f8677b2622475c5c46e.tar.bz2 cifs-utils-7156c6eca0fcf3d4a2fd2f8677b2622475c5c46e.zip |
mount.cifs: fix max buffer size when parsing snapshot option
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'mount.cifs.c')
-rw-r--r-- | mount.cifs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mount.cifs.c b/mount.cifs.c index ff07232..7c949cf 100644 --- a/mount.cifs.c +++ b/mount.cifs.c @@ -1292,7 +1292,7 @@ nocopy: strlcat(out, ",", MAX_OPTIONS_LEN); out_len++; } - snprintf(out + out_len, word_len + 11, "snapshot=%s", txtbuf); + snprintf(out + out_len, word_len + 10, "snapshot=%s", txtbuf); out_len = strlen(out); } |