]> Git Repo - qemu.git/commit
usb-host: Initialize dev->port the obviously safe way
authorMarkus Armbruster <[email protected]>
Thu, 10 Jan 2013 13:33:25 +0000 (14:33 +0100)
committerGerd Hoffmann <[email protected]>
Mon, 14 Jan 2013 11:47:11 +0000 (12:47 +0100)
commit036078475427f2562c8e505f6bb44dbf5d8cbd95
tree2b2e2e408eec07b462f0f64b872a2dc29c6f3566
parent4663530898a15944706d51b523d1f1545e32e46a
usb-host: Initialize dev->port the obviously safe way

Coverity worries the strcpy() could overrun the destination.  It
can't, because the source always points to usb_host_scan()'s auto
port[], which has the same size.  Use pstrcpy() anyway, to hush the
checker.

Signed-off-by: Markus Armbruster <[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/usb/host-linux.c
This page took 0.026851 seconds and 4 git commands to generate.