Format string uses 'n' for Py_ssize_t but size_t is unsigned long, we
need to use 'k'.
Signed-off-by: Pavel Hrdina <phrdina(a)redhat.com>
---
libvirt-override.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libvirt-override.c b/libvirt-override.c
index e99e8ff..2308802 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -7552,7 +7552,7 @@ libvirt_virDomainBlockPeek(PyObject *self ATTRIBUTE_UNUSED,
char *buf;
unsigned int flags;
- if (!PyArg_ParseTuple(args, (char *)"OzKnI:virDomainBlockPeek",
+ if (!PyArg_ParseTuple(args, (char *)"OzKkI:virDomainBlockPeek",
&pyobj_domain, &disk, &offset, &size,
&flags))
return NULL;
@@ -7590,7 +7590,7 @@ libvirt_virDomainMemoryPeek(PyObject *self ATTRIBUTE_UNUSED,
char *buf;
unsigned int flags;
- if (!PyArg_ParseTuple(args, (char *)"OKnI:virDomainMemoryPeek",
+ if (!PyArg_ParseTuple(args, (char *)"OKkI:virDomainMemoryPeek",
&pyobj_domain, &start, &size, &flags))
return NULL;
--
2.7.1