diff options
author | Jeremy Allison <jra@samba.org> | 2011-05-03 13:10:01 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-05-04 12:12:13 -0700 |
commit | 017e0c8d95fe8212b006e1c14aef8d96fed30674 (patch) | |
tree | 3bb209bc92d298d17255a69713981a7df18d0b8b /source4/client/client.c | |
parent | deba880986b1029fa059fcfba9b2a72abf598a9b (diff) | |
download | samba-017e0c8d95fe8212b006e1c14aef8d96fed30674.tar.gz |
Fix simple uses of safe_strcpy -> strlcpy. Easy ones where we just remove -1.
Diffstat (limited to 'source4/client/client.c')
-rw-r--r-- | source4/client/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/client/client.c b/source4/client/client.c index 923a6f3a238..a226982296c 100644 --- a/source4/client/client.c +++ b/source4/client/client.c @@ -473,8 +473,8 @@ static void add_to_do_list_queue(const char* entry) } if (do_list_queue) { - safe_strcpy(do_list_queue + do_list_queue_end, entry, - do_list_queue_size - do_list_queue_end - 1); + strlcpy(do_list_queue + do_list_queue_end, entry ? entry : "", + do_list_queue_size - do_list_queue_end); 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)); |