提交 7479026b 编写于 作者: J John Ferlan 提交者: Peter Krempa

security: Use virStrcpy to move the label

上级 f4ece176
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册