[libvirt] [PATCH] Eliminate compiler warning about non-const format string
Daniel Veillard
veillard at redhat.com
Sun Apr 4 07:53:06 UTC 2010
On Sat, Apr 03, 2010 at 11:21:34PM -0400, Laine Stump wrote:
> ---
> src/nwfilter/nwfilter_ebiptables_driver.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/nwfilter/nwfilter_ebiptables_driver.c b/src/nwfilter/nwfilter_ebiptables_driver.c
> index 6d66543..cffe027 100644
> --- a/src/nwfilter/nwfilter_ebiptables_driver.c
> +++ b/src/nwfilter/nwfilter_ebiptables_driver.c
> @@ -204,7 +204,7 @@ _printDataType(virConnectPtr conn,
> case DATATYPE_IPMASK:
> if (snprintf(buf, bufsize, "%d",
> item->u.u8) >= bufsize) {
> - virNWFilterReportError(conn, VIR_ERR_INVALID_NWFILTER,
> + virNWFilterReportError(conn, VIR_ERR_INVALID_NWFILTER, "%s",
> _("Buffer too small for uint8 type"));
> return 1;
> }
ACK,
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel at veillard.com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
More information about the libvir-list
mailing list