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:
parent
4f1ea70fd1
commit
218dbee6c6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user