summaryrefslogtreecommitdiff
path: root/source3/utils/net.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-06 07:55:48 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-06 07:55:48 +0000
commit192148bab352697e625e78e7f2444e00453f35ff (patch)
treedfe53aeadc911f961ee146cb5af7ba6d1f370246 /source3/utils/net.c
parent7a3cc345e0508848b0e2bd492789973bcf2d5841 (diff)
downloadsamba-192148bab352697e625e78e7f2444e00453f35ff.tar.gz
samba-192148bab352697e625e78e7f2444e00453f35ff.tar.bz2
samba-192148bab352697e625e78e7f2444e00453f35ff.zip
More safe_strcpy() off-by-one bug fixes. (mostly moves to pstrcpy()/fstrcpy())
Andrew Bartlett (This used to be commit 42b5514404bc7e33306c11344c6c934a1f83d295)
Diffstat (limited to 'source3/utils/net.c')
-rw-r--r--source3/utils/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c
index c1285bc64b..f6b3c5c84c 100644
--- a/source3/utils/net.c
+++ b/source3/utils/net.c
@@ -241,7 +241,7 @@ BOOL net_find_dc(struct in_addr *server_ip, fstring server_name, const char *dom
if (!lookup_dc_name(global_myname(), domain_name, server_ip, dc_name))
return False;
- safe_strcpy(server_name, dc_name, FSTRING_LEN);
+ fstrcpy(server_name, dc_name);
return True;
} else
return False;