summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_shadow_copy2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c
index a4265474bf..8ac42e625c 100644
--- a/source3/modules/vfs_shadow_copy2.c
+++ b/source3/modules/vfs_shadow_copy2.c
@@ -661,6 +661,7 @@ static char *shadow_copy2_realpath(vfs_handle_struct *handle,
}
copy[gmt - fname] = '.';
+ copy[gmt - fname + 1] = '\0';
DEBUG(10, ("calling NEXT_REALPATH with %s\n", copy));
result = SMB_VFS_NEXT_REALPATH(handle, copy, resolved_path);