X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fpci_passthrough.c;h=5792535032029597e8368207ec2bf91ff6d87ab4;hp=dda9c805882567c3001f84c80c4cb44ddea9ae9b;hb=d22c11cec4e8c3390bfe6bf16ed07f5d073f0d4a;hpb=f240f8a3c11478abe180bd906c746c68eb8c3a3c diff --git a/palacios/src/devices/pci_passthrough.c b/palacios/src/devices/pci_passthrough.c index dda9c80..5792535 100644 --- a/palacios/src/devices/pci_passthrough.c +++ b/palacios/src/devices/pci_passthrough.c @@ -793,6 +793,7 @@ static int passthrough_init(struct v3_vm_info * vm, v3_cfg_tree_t * cfg) { state->pci_bus = pci; strncpy(state->name, dev_id, 32); + state->name[31] = 0 ; dev = v3_add_device(vm, dev_id, &dev_ops, state);