X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_module%2Fiface-host-pci.c;fp=linux_module%2Fiface-host-pci.c;h=9eb3a9a12a6095e08293716d943216021942565a;hb=d22c11cec4e8c3390bfe6bf16ed07f5d073f0d4a;hp=48097d8322d74bd4a63b88acb2eff0cc3d6b1a86;hpb=f240f8a3c11478abe180bd906c746c68eb8c3a3c;p=palacios.git diff --git a/linux_module/iface-host-pci.c b/linux_module/iface-host-pci.c index 48097d8..9eb3a9a 100644 --- a/linux_module/iface-host-pci.c +++ b/linux_module/iface-host-pci.c @@ -184,6 +184,7 @@ static int register_pci_hw_dev(unsigned int cmd, unsigned long arg) { strncpy(host_dev->name, hw_dev_arg.name, 128); + host_dev->name[127] = 0; host_dev->v3_dev.host_data = host_dev;