Fix use of strncpy, which is actually good to use memcpy.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 6 Sep 2018 02:41:13 +0000 (11:41 +0900)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Sun, 30 Sep 2018 16:40:42 +0000 (17:40 +0100)
commit7c9a2287f4d286aded06e5545a94986ac8496866
tree70c0436a87cef23270bb98b309868256cc6ae39f
parent96b4c0cd9640af56f9b643d8d148d5953dfbfeb9
Fix use of strncpy, which is actually good to use memcpy.

* common/ssh-utils.c (get_fingerprint): Use memcpy.
* g10/build-packet.c (string_to_notation): Use memcpy.

--

Cherry-pick of master commit of:
625ced6e672daa892d334323cce6b3d42a6f929f

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
(cherry picked from commit f0fdee2e24a25f57a84e1684984ce3921d923e0a)

Gbp-Pq: Name Fix-use-of-strncpy-which-is-actually-good-to-use-memcpy.patch
common/ssh-utils.c
g10/build-packet.c