[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[libvirt] Patch: Fix build with -Werror=format-security cflag
- From: Frederik Himpe <fhimpe telenet be>
- To: libvir-list redhat com
- Subject: [libvirt] Patch: Fix build with -Werror=format-security cflag
- Date: Sat, 2 May 2009 16:25:58 +0000 (UTC)
This patch is needed to build libvirt with -Werror=format-security gcc cflag,
which is used by default on Mandriva
diff -ur libvirt-0.6.3.orig/src/virsh.c libvirt-0.6.3/src/virsh.c
--- libvirt-0.6.3.orig/src/virsh.c 2009-04-15 21:43:26.000000000 +0200
+++ libvirt-0.6.3/src/virsh.c 2009-05-02 13:56:11.000000000 +0200
@@ -4463,7 +4463,7 @@
}
/* Print this device */
- vshPrint(ctl, indentBuf);
+ vshPrint(ctl, "%s", indentBuf);
vshPrint(ctl, "%s\n", devices[devid]);
@@ -4487,7 +4487,7 @@
/* If there is a child device, then print another blank line */
if (nextlastdev != -1) {
- vshPrint(ctl, indentBuf);
+ vshPrint(ctl, "%s", indentBuf);
vshPrint(ctl, " |\n");
}
@@ -4511,7 +4511,7 @@
/* If there was no child device, and we're the last in
* a list of devices, then print another blank line */
if (nextlastdev == -1 && devid == lastdev) {
- vshPrint(ctl, indentBuf);
+ vshPrint(ctl, "%s", indentBuf);
vshPrint(ctl, "\n");
}
}
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]