mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
Eliminate compiler warning about non-const format string
This commit is contained in:
parent
905709500a
commit
5dac5970a5
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user