libcacard/vcard_emul_nss: use pstrcpy in place of strncpy
commit2e679780ae86c6ca8bc81efe0a376a0b99b09b8f
authorJim Meyering <meyering@redhat.com>
Thu, 4 Oct 2012 11:09:59 +0000 (4 13:09 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 5 Oct 2012 12:58:38 +0000 (5 07:58 -0500)
tree9d2ae74b685b416fc2f1442362a8c200b6201d66
parent1ab516ed9b6ba00bafc5ca37604f8af4680323ca
libcacard/vcard_emul_nss: use pstrcpy in place of strncpy

Replace strncpy+NUL-terminate use with use of pstrcpy.
This requires linking with cutils.o (or else vssclient doesn't link),
so add that in the Makefile.

Acked-by: Alon Levy <alevy@redhat.com>
Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
libcacard/Makefile
libcacard/vcard_emul_nss.c