1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

libsmb: Use fstrcpy where possible

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2022-02-06 21:59:05 +01:00 committed by Jeremy Allison
parent 929ccd3d1a
commit 60a7293321

View File

@ -764,7 +764,7 @@ cacl_get(SMBCCTX *context,
}
/* Copy name so we can strip off exclusions (if any are specified) */
strncpy(name_sandbox, attr_name, sizeof(name_sandbox) - 1);
fstrcpy(name_sandbox, attr_name);
/* Ensure name is null terminated */
name_sandbox[sizeof(name_sandbox) - 1] = '\0';