diff options
| -rw-r--r-- | fs/cifs/connect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 5b97e56ddbca..e3bc39bb9d12 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
| @@ -3279,8 +3279,8 @@ build_unc_path_to_root(const struct smb_vol *vol, | |||
| 3279 | pos = full_path + unc_len; | 3279 | pos = full_path + unc_len; |
| 3280 | 3280 | ||
| 3281 | if (pplen) { | 3281 | if (pplen) { |
| 3282 | *pos++ = CIFS_DIR_SEP(cifs_sb); | 3282 | *pos = CIFS_DIR_SEP(cifs_sb); |
| 3283 | strncpy(pos, vol->prepath, pplen); | 3283 | strncpy(pos + 1, vol->prepath, pplen); |
| 3284 | pos += pplen; | 3284 | pos += pplen; |
| 3285 | } | 3285 | } |
| 3286 | 3286 | ||
