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>
Mon, 8 Oct 2018 15:36:01 +0000 (16:36 +0100)
commita615b1367519c07c04eea39bf02aa4f4229d24f0
tree6419f982df3bbd4b15e65ee52e6e497689fdfc99
parent7d742550064494e1f75e9e1c4070c1d3c65701b3
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