1
0
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:
John Ferlan 2013-01-18 09:27:05 -05:00 committed by Peter Krempa
parent f4ece17665
commit 7479026b5c

View File

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