From 7bd2976f9c4b862ed33cd24755d78766928e0e36 Mon Sep 17 00:00:00 2001 From: Alexander Usyskin Date: Mon, 19 Nov 2018 09:58:23 +0200 Subject: [PATCH] dm: mei: add zero termination to devpath Reset directory name to receive clean prints. Tracked-On: #1847 Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler Acked-by: Acked-by: Yu Wang --- devicemodel/hw/pci/virtio/virtio_mei.c | 1 + 1 file changed, 1 insertion(+) diff --git a/devicemodel/hw/pci/virtio/virtio_mei.c b/devicemodel/hw/pci/virtio/virtio_mei.c index d4eb1c968..2baa40900 100644 --- a/devicemodel/hw/pci/virtio/virtio_mei.c +++ b/devicemodel/hw/pci/virtio/virtio_mei.c @@ -806,6 +806,7 @@ static int vmei_me_client_scan_list(struct virtio_mei *vmei) struct mei_client_properties props; memset(&props, 0, sizeof(props)); + devpath[d_offset] = '\0'; DPRINTF("found client %s %s\n", ent->d_name, devpath);