diff options
author | Alexander Bokovoy <ab@samba.org> | 2004-03-12 11:29:13 +0000 |
---|---|---|
committer | Alexander Bokovoy <ab@samba.org> | 2004-03-12 11:29:13 +0000 |
commit | 02fa0a905619393f42feffa54be11a0c4f98b42a (patch) | |
tree | 545fa0e6c78151b36d002d4b8423819e4982e9d7 /source3/modules | |
parent | d99a3d2a5ab7e6ac3a971b7b951fe4106a5f548c (diff) | |
download | samba-02fa0a905619393f42feffa54be11a0c4f98b42a.tar.gz samba-02fa0a905619393f42feffa54be11a0c4f98b42a.tar.bz2 samba-02fa0a905619393f42feffa54be11a0c4f98b42a.zip |
Fix string overflow due to wrong size calculation
(This used to be commit cf0285f3ea017d300d94e8c7f7042ae8ccc8f960)
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_recycle.c | 2 |
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'; |