mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
smbd: 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
e74ad1b745
commit
2cc2a75305
@ -364,7 +364,7 @@ static int package(struct pack_desc *p, ...)
|
||||
{
|
||||
char *s = va_arg(args,char*);
|
||||
if (p->buflen >= needed) {
|
||||
StrnCpy(p->structbuf,s?s:"",needed-1);
|
||||
strlcpy(p->structbuf,s?s:"",needed);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user