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:
parent
929ccd3d1a
commit
60a7293321
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user