]> xenbits.xensource.com Git - qemu-upstream-unstable.git/commit
vmdk: relative_path: use pstrcpy in place of strncpy
authorJim Meyering <meyering@redhat.com>
Thu, 4 Oct 2012 11:09:48 +0000 (13:09 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 5 Oct 2012 12:58:36 +0000 (07:58 -0500)
commitd66f8e7bd3de4a2ecf0680c635f870f2138425b8
treecbca695676fd55f235d66ff6fd329fc4330631f5
parent3178e2755ec5a7fb1afe583fb6ac2622c2c42184
vmdk: relative_path: use pstrcpy in place of strncpy

Avoid strncpy+manual-NUL-terminate.  Use pstrcpy instead.

Acked-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block/vmdk.c