mirror of https://gitee.com/openkylin/libvirt.git
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…
Reference in New Issue