diff options
author | Simo Sorce <idra@samba.org> | 2003-04-07 18:13:03 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2003-04-07 18:13:03 +0000 |
commit | 98a57e60325908c9d24df0732623005a9a97972f (patch) | |
tree | 2910819b9c37ea917eb62f949f95fb3d613d3960 | |
parent | a648f57bfe38b87982afc2edc155ef2ea54865ce (diff) | |
download | samba-98a57e60325908c9d24df0732623005a9a97972f.tar.gz samba-98a57e60325908c9d24df0732623005a9a97972f.tar.bz2 samba-98a57e60325908c9d24df0732623005a9a97972f.zip |
ooops new_dir is already len +1 bytes
(This used to be commit ffd0d643c224e9169737e7dbfef40cab46fde8f3)
-rw-r--r-- | source3/modules/vfs_recycle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/modules/vfs_recycle.c b/source3/modules/vfs_recycle.c index 00e6cce27c..823fab2b86 100644 --- a/source3/modules/vfs_recycle.c +++ b/source3/modules/vfs_recycle.c @@ -280,7 +280,7 @@ static BOOL recycle_create_dir(connection_struct *conn, const char *dname) /* Create directory tree if neccessary */ for(token = strtok(tok_str, "/"); token; token = strtok(NULL, "/")) { - safe_strcat(new_dir, token, len - 1); + safe_strcat(new_dir, token, len); if (recycle_directory_exist(conn, new_dir)) DEBUG(10, ("recycle.bin: dir %s already exists\n", new_dir)); else { @@ -291,7 +291,7 @@ static BOOL recycle_create_dir(connection_struct *conn, const char *dname) goto done; } } - safe_strcat(new_dir, "/", len - 1); + safe_strcat(new_dir, "/", len); } ret = True; |