mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Eliminate compiler warning about non-const format string
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user