git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d99a3d2
)
Fix string overflow due to wrong size calculation
author
Alexander Bokovoy
<ab@samba.org>
Fri, 12 Mar 2004 11:29:13 +0000
(11:29 +0000)
committer
Alexander Bokovoy
<ab@samba.org>
Fri, 12 Mar 2004 11:29:13 +0000
(11:29 +0000)
(This used to be commit
cf0285f3ea017d300d94e8c7f7042ae8ccc8f960
)
source3/modules/vfs_recycle.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_recycle.c
b/source3/modules/vfs_recycle.c
index 9b31f6afb950bfe073fbc9d5c2d15a0ca830a57f..1cb1cb327b49f29a4b9a72dac7ce3a0b63e8994f 100644
(file)
--- 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';