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
1 changed files with 2 additions and 1 deletions

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