]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Remove use of strncpy in qemudExtractMonitorPath.
authorChris Lalancette <clalance@redhat.com>
Mon, 3 Aug 2009 15:07:19 +0000 (17:07 +0200)
committerChris Lalancette <clalance@redhat.com>
Mon, 31 Aug 2009 19:01:36 +0000 (21:01 +0200)
commit776f527926cd919454c27f08f4ba04d3e96fe300
treef72887cb5f1795295cece078a43d674aa10a1919
parentbf878aa97ef169e9c0cc4dcd7a1b27cce0eb2cc5
Remove use of strncpy in qemudExtractMonitorPath.

qemudExtractMonitorPath() was doing a VIR_ALLOC_N followed by a
strncpy.  However, this isn't necessary; we can do the same thing
using strndup, which is much safer.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
src/qemu_driver.c