diff --git a/src/security/security_dac.c b/src/security/security_dac.c index deff024c40966156ec78a802417a2fba6d1a4615..93a03017b1c219876ce6ae00d19dfadaf173911a 100644 --- a/src/security/security_dac.c +++ b/src/security/security_dac.c @@ -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; }