diff options
author | Jeremy Allison <jra@samba.org> | 2011-05-04 11:38:26 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-05-04 12:12:15 -0700 |
commit | 8380835fc6de38706d9af29dc7f0fa4cec4f9c90 (patch) | |
tree | 5fdf238d5573c022a135e3f2e5590b656b0d64bf /source3/client | |
parent | df023b8657cab232df88d3656aa5d87676bb7254 (diff) | |
download | samba-8380835fc6de38706d9af29dc7f0fa4cec4f9c90.tar.gz samba-8380835fc6de38706d9af29dc7f0fa4cec4f9c90.tar.bz2 samba-8380835fc6de38706d9af29dc7f0fa4cec4f9c90.zip |
Fix warning messages caused by addition of null check in fstrcpy macro.
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 75d57165cf..836d1016be 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -5046,9 +5046,9 @@ static int do_message_op(struct user_auth_info *a_info) make_nmb_name(&calling, calling_name, 0x0); make_nmb_name(&called , desthost, name_type); - fstrcpy(server_name, desthost); + strlcpy(server_name, desthost,sizeof(server_name)); snprintf(name_type_hex, sizeof(name_type_hex), "#%X", name_type); - fstrcat(server_name, name_type_hex); + strlcat(server_name, name_type_hex,sizeof(server_name)); zero_sockaddr(&ss); if (have_ip) |