]> Git Repo - qemu.git/commit
virtio-9p: avoid unwarranted uses of strncpy
authorJim Meyering <[email protected]>
Thu, 4 Oct 2012 11:09:56 +0000 (13:09 +0200)
committerAnthony Liguori <[email protected]>
Fri, 5 Oct 2012 12:58:37 +0000 (07:58 -0500)
commit9238c2099d37748a4e2cbbe709ed1ebffa6f3c8b
treea2a3b8b714380d4c8e6013b795c0a70f157fc48a
parente5fda03839e3c61b01d6c60de5625501d01c69d0
virtio-9p: avoid unwarranted uses of strncpy

In all of these cases, the uses of strncpy were unnecessary, since
at each point of use we know that the NUL-terminated source bytes
fit in the destination buffer.  Use memcpy in place of strncpy.

Acked-by: Aneesh Kumar K.V <[email protected]>
Signed-off-by: Jim Meyering <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
hw/9pfs/virtio-9p-posix-acl.c
hw/9pfs/virtio-9p-xattr-user.c
hw/9pfs/virtio-9p-xattr.c
This page took 0.026177 seconds and 4 git commands to generate.