You've already forked opencryptoki
mirror of
https://github.com/opencryptoki/opencryptoki.git
synced 2026-10-25 17:39:16 +03:00
Instead of copying each member separately, copy the entire struct at once. This also fixes a bug where the string fields uses memcpy with strlen, which does not copy the trailing NUL character. The target struct is zeroed before, so there anyway is a NUL character, but that is subtle. While at it remove the unused field shm_addr. Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>