mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
security: Use virStrcpy to move the label
This commit is contained in:
parent
f4ece17665
commit
7479026b5c
@ -995,7 +995,8 @@ virSecurityDACGetProcessLabel(virSecurityManagerPtr mgr ATTRIBUTE_UNUSED,
|
||||
return -1;
|
||||
|
||||
if (secdef->label)
|
||||
strcpy(seclabel->label, secdef->label);
|
||||
ignore_value(virStrcpy(seclabel->label, secdef->label,
|
||||
VIR_SECURITY_LABEL_BUFLEN));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user