commit | 9238c2099d37748a4e2cbbe709ed1ebffa6f3c8b | [log] [tgz] |
---|---|---|
author | Jim Meyering <meyering@redhat.com> | Thu Oct 04 13:09:56 2012 +0200 |
committer | Anthony Liguori <aliguori@us.ibm.com> | Fri Oct 05 07:58:37 2012 -0500 |
tree | a2a3b8b714380d4c8e6013b795c0a70f157fc48a | |
parent | e5fda03839e3c61b01d6c60de5625501d01c69d0 [diff] |
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 <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Jim Meyering <meyering@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>