|
@@ -3279,8 +3279,8 @@ build_unc_path_to_root(const struct smb_vol *vol,
|
|
|
pos = full_path + unc_len;
|
|
|
|
|
|
if (pplen) {
|
|
|
- *pos++ = CIFS_DIR_SEP(cifs_sb);
|
|
|
- strncpy(pos, vol->prepath, pplen);
|
|
|
+ *pos = CIFS_DIR_SEP(cifs_sb);
|
|
|
+ strncpy(pos + 1, vol->prepath, pplen);
|
|
|
pos += pplen;
|
|
|
}
|
|
|
|