1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2024-10-26 07:55:06 +03:00

Remove use of virStrcpyStatic

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrange 2013-11-12 18:21:53 +00:00
parent 4f1ea70fd1
commit 218dbee6c6

View File

@ -189,7 +189,8 @@ setPyVirTypedParameter(PyObject *info,
goto cleanup;
}
ignore_value(virStrcpyStatic(temp->field, keystr));
strncpy(temp->field, keystr, sizeof(*temp->field) - 1);
temp->field[sizeof(*temp->field) - 1] = '\0';
temp->type = params[i].type;
switch (params[i].type) {