summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-07-18 01:36:11 +0000
committerAndrew Tridgell <tridge@samba.org>2003-07-18 01:36:11 +0000
commite895bd2320fe71a95d7378ee5c6e45a2117cf903 (patch)
treed1cd40bb265919b6769c95d86bdc04736e32edde /source3
parent814e987c6241601fb03335b2ba9a633d65cc5e23 (diff)
downloadsamba-e895bd2320fe71a95d7378ee5c6e45a2117cf903.tar.gz
samba-e895bd2320fe71a95d7378ee5c6e45a2117cf903.tar.bz2
samba-e895bd2320fe71a95d7378ee5c6e45a2117cf903.zip
fixed the pstrcpy() bug in directory recursion properly
(This used to be commit 132d6fdf635eb2bf2a1afd6e850d0f6967260f84)
Diffstat (limited to 'source3')
-rw-r--r--source3/client/client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 5bc125ad07..9cd9c81f23 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -438,7 +438,8 @@ static void add_to_do_list_queue(const char* entry)
}
if (do_list_queue)
{
- memcpy(do_list_queue + do_list_queue_end, entry, strlen(entry) + 1);
+ safe_strcpy_base(do_list_queue + do_list_queue_end,
+ entry, do_list_queue, do_list_queue_size);
do_list_queue_end = new_end;
DEBUG(4,("added %s to do_list_queue (start=%d, end=%d)\n",
entry, (int)do_list_queue_start, (int)do_list_queue_end));