summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-05-03 13:10:01 -0700
committerJeremy Allison <jra@samba.org>2011-05-04 12:12:13 -0700
commit017e0c8d95fe8212b006e1c14aef8d96fed30674 (patch)
tree3bb209bc92d298d17255a69713981a7df18d0b8b /source3/utils
parentdeba880986b1029fa059fcfba9b2a72abf598a9b (diff)
downloadsamba-017e0c8d95fe8212b006e1c14aef8d96fed30674.tar.gz
samba-017e0c8d95fe8212b006e1c14aef8d96fed30674.tar.bz2
samba-017e0c8d95fe8212b006e1c14aef8d96fed30674.zip
Fix simple uses of safe_strcpy -> strlcpy. Easy ones where we just remove -1.
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/net_rap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_rap.c b/source3/utils/net_rap.c
index afda222740..21a4f0a170 100644
--- a/source3/utils/net_rap.c
+++ b/source3/utils/net_rap.c
@@ -824,7 +824,7 @@ static int rap_user_add(struct net_context *c, int argc, const char **argv)
if (!NT_STATUS_IS_OK(net_make_ipc_connection(c, 0, &cli)))
return -1;
- safe_strcpy((char *)userinfo.user_name, argv[0], sizeof(userinfo.user_name)-1);
+ strlcpy((char *)userinfo.user_name, argv[0], sizeof(userinfo.user_name));
if (c->opt_flags == 0)
c->opt_flags = 0x21;
@@ -969,7 +969,7 @@ static int rap_group_add(struct net_context *c, int argc, const char **argv)
return -1;
/* BB check for length 21 or smaller explicitly ? BB */
- safe_strcpy((char *)grinfo.group_name, argv[0], sizeof(grinfo.group_name)-1);
+ strlcpy((char *)grinfo.group_name, argv[0], sizeof(grinfo.group_name));
grinfo.reserved1 = '\0';
grinfo.comment = smb_xstrdup(c->opt_comment ? c->opt_comment : "");