]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
security: Use virStrcpy to move the label
authorJohn Ferlan <jferlan@redhat.com>
Fri, 18 Jan 2013 14:27:05 +0000 (09:27 -0500)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 22 Jan 2013 13:34:11 +0000 (14:34 +0100)
src/security/security_dac.c

index deff024c40966156ec78a802417a2fba6d1a4615..93a03017b1c219876ce6ae00d19dfadaf173911a 100644 (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;
 }