summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2013-09-09 10:03:26 +0100
committerDaniel P. Berrange <berrange@redhat.com>2013-09-09 16:42:02 +0100
commit1e9fa100ab1bd470a84a36500edc5a59245f2ab5 (patch)
treebebd8ec56e4d547e58193f17c05c1877c2beefa8
parent5ce207ba7d04ed922cc9c29a3fac436998ee59a5 (diff)
downloadlibvirt-python-split-1e9fa100ab1bd470a84a36500edc5a59245f2ab5.zip
libvirt-python-split-1e9fa100ab1bd470a84a36500edc5a59245f2ab5.tar.gz
libvirt-python-split-1e9fa100ab1bd470a84a36500edc5a59245f2ab5.tar.xz
Remove use of virStrcpyStatic
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
-rw-r--r--libvirt-override.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libvirt-override.c b/libvirt-override.c
index c2c1c18..0bf6512 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -220,7 +220,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) {