mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
libsmb: Use strlcpy instead of StrnCpy
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
facd6f2daf
commit
fa945bc1e0
@ -274,7 +274,7 @@ static struct node_status *parse_node_status(TALLOC_CTX *mem_ctx, char *p,
|
||||
|
||||
p++;
|
||||
for (i=0;i< *num_names;i++) {
|
||||
StrnCpy(ret[i].name,p,15);
|
||||
strlcpy(ret[i].name,p,16);
|
||||
trim_char(ret[i].name,'\0',' ');
|
||||
ret[i].type = CVAL(p,15);
|
||||
ret[i].flags = p[16];
|
||||
|
Loading…
Reference in New Issue
Block a user