1
0
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:
Volker Lendecke 2018-12-31 07:15:21 +01:00 committed by Jeremy Allison
parent e74ad1b745
commit 2cc2a75305

View File

@ -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;