summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2004-03-12 11:21:50 +0000
committerAlexander Bokovoy <ab@samba.org>2004-03-12 11:21:50 +0000
commit938cef91ff08d4e277249376befbf159cf9dd7c4 (patch)
treedeaf149bc9bd12c8238687532004e83a5bab6a5e
parent03c0e32c2801d25aba7b6f906abdcb07497613d6 (diff)
downloadsamba-938cef91ff08d4e277249376befbf159cf9dd7c4.tar.gz
samba-938cef91ff08d4e277249376befbf159cf9dd7c4.tar.bz2
samba-938cef91ff08d4e277249376befbf159cf9dd7c4.zip
Fix string overflow due to wrong size calculation
(This used to be commit e1d0b8fc7bbe075dd817e3816f29640cda980732)
-rw-r--r--source3/modules/vfs_recycle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/modules/vfs_recycle.c b/source3/modules/vfs_recycle.c
index 9b31f6afb9..1cb1cb327b 100644
--- a/source3/modules/vfs_recycle.c
+++ b/source3/modules/vfs_recycle.c
@@ -219,7 +219,7 @@ static BOOL recycle_create_dir(vfs_handle_struct *handle, const char *dname)
ALLOC_CHECK(tmp_str, done);
tok_str = tmp_str;
- len = strlen(dname);
+ len = strlen(dname)+1;
new_dir = (char *)malloc(len + 1);
ALLOC_CHECK(new_dir, done);
*new_dir = '\0';