qemu-patch-raspberry4/libcacard
Michael Tokarev a22f8f3894 libcacard: replace pstrcpy() with memcpy()
Commit 2e679780ae replaced strncpy() with pstrcpy()
in one place in libcacard.  This is a qemu-specific function,
while libcacard is a stand-alone library (or tries to be).
But since we know the exact length of the string to copy,
and know that it definitely will fit in the destination
buffer, use memcpy() instead, and null-terminate the string
after that.

An alternative is to use g_strlcpy() or strncpy(), but memcpy()
is more than adequate in this place.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Cc: qemu-trivial@nongnu.org
Cc: Alon Levy <alevy@redhat.com>
2014-05-07 21:00:43 +04:00
..
cac.c libcacard/cac: Remove unused statement (value stored is never read) 2013-12-02 21:07:02 +04:00
cac.h libcacard/vreader: add debugging messages for apdu 2013-04-24 11:48:02 +03:00
card_7816.c misc: Fix some typos in names and comments 2013-09-01 18:59:24 +04:00
card_7816.h fix spelling in libcacard sub directory 2011-12-02 10:50:56 +00:00
card_7816t.h misc: Fix some typos in names and comments 2013-09-01 18:59:24 +04:00
event.c misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01:00
eventt.h libcacard: initial commit 2011-04-01 19:07:48 -05:00
libcacard.pc.in libcacard: add pc file, install it + includes 2011-07-26 10:42:13 +03:00
libcacard.syms libcacard: add list of exported symbols 2013-01-12 17:19:39 +01:00
link_test.c libcacard: initial commit 2011-04-01 19:07:48 -05:00
Makefile libcacard: Don't link with all libraries QEMU links to 2014-02-09 13:06:02 +02:00
vcard.c cleanup useless return sentence 2012-10-05 15:10:21 +02:00
vcard.h libcacard: initial commit 2011-04-01 19:07:48 -05:00
vcard_emul.h libcacard: initial commit 2011-04-01 19:07:48 -05:00
vcard_emul_nss.c libcacard: replace pstrcpy() with memcpy() 2014-05-07 21:00:43 +04:00
vcard_emul_type.c libcacard: initial commit 2011-04-01 19:07:48 -05:00
vcard_emul_type.h libcacard: initial commit 2011-04-01 19:07:48 -05:00
vcardt.c libcacard: move atr setting from macro to function 2013-04-24 11:48:03 +03:00
vcardt.h libcacard: move atr setting from macro to function 2013-04-24 11:48:03 +03:00
vcardt_internal.h libcacard: move atr setting from macro to function 2013-04-24 11:48:03 +03:00
vevent.h libcacard: initial commit 2011-04-01 19:07:48 -05:00
vreader.c libcacard/vreader: add debugging messages for apdu 2013-04-24 11:48:02 +03:00
vreader.h libcacard: initial commit 2011-04-01 19:07:48 -05:00
vreadert.h libcacard: initial commit 2011-04-01 19:07:48 -05:00
vscard_common.h fix spelling in libcacard sub directory 2011-12-02 10:50:56 +00:00
vscclient.c Add a 'name' parameter to qemu_thread_create 2014-03-09 21:09:38 +02:00