From: John Ferlan Date: Fri, 18 Jan 2013 14:27:05 +0000 (-0500) Subject: security: Use virStrcpy to move the label X-Git-Tag: v1.0.2-rc1~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7479026b5cf661773203b307c2b3243f40468723;p=thirdparty%2Flibvirt.git security: Use virStrcpy to move the label --- diff --git a/src/security/security_dac.c b/src/security/security_dac.c index deff024c40..93a03017b1 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; }