lm32: avoid buffer overrun
authorJim Meyering <meyering@redhat.com>
Thu, 4 Oct 2012 11:09:50 +0000 (13:09 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 5 Oct 2012 12:58:37 +0000 (07:58 -0500)
commit1044dc1118d9a90e2aa324047bea9c91c889e28f
tree39bf965f0e9436ccb0f20d1459dcdf6574a0c114
parenta79b5f8b80890b402fdb0733b0a073695a7875b5
lm32: avoid buffer overrun

Actually do what the comment says, using pstrcpy NUL-terminate:
strncpy does not always do that.

Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/lm32_hwsetup.h