]> git.proxmox.com Git - qemu.git/commit - os-posix.c
os-posix: avoid buffer overrun
authorJim Meyering <meyering@redhat.com>
Thu, 4 Oct 2012 11:09:51 +0000 (13:09 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 5 Oct 2012 12:58:37 +0000 (07:58 -0500)
commit3eadc68ebd174f5bad51fe6e0bbcf6d6651c784c
treef6b2444ca55b96d1b75f9cd7b156508a647ca8e5
parent1044dc1118d9a90e2aa324047bea9c91c889e28f
os-posix: avoid buffer overrun

os_set_proc_name: Use pstrcpy, in place of strncpy and the
ineffectual preceding assignment: name[sizeof(name) - 1] = 0;

Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
os-posix.c