diff options
author | Daiki Ueno <dueno@redhat.com> | 2018-05-07 11:19:10 +0200 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2018-05-07 17:30:25 +0200 |
commit | ba006ed40cad2e0d1fe3c3355c18bdfb612c2cd6 (patch) | |
tree | 43d969663cd72b4c68b79dcf1307f5fba66d7655 | |
parent | 1b85c62af8146efa0e648a297179db2bbfe59b43 (diff) |
proxy: Don't null terminate PKCS #11 string fields
-rw-r--r-- | p11-kit/proxy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/p11-kit/proxy.c b/p11-kit/proxy.c index 22de32e..fae603c 100644 --- a/p11-kit/proxy.c +++ b/p11-kit/proxy.c @@ -418,8 +418,8 @@ proxy_C_GetInfo (CK_X_FUNCTION_LIST *self, info->libraryVersion.major = LIBRARY_VERSION_MAJOR; info->libraryVersion.minor = LIBRARY_VERSION_MINOR; info->flags = 0; - strncpy ((char*)info->manufacturerID, MANUFACTURER_ID, 32); - strncpy ((char*)info->libraryDescription, LIBRARY_DESCRIPTION, 32); + memcpy ((char*)info->manufacturerID, MANUFACTURER_ID, 32); + memcpy ((char*)info->libraryDescription, LIBRARY_DESCRIPTION, 32); return CKR_OK; } |