diff options
author | NIIBE Yutaka <[email protected]> | 2018-09-06 02:41:13 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2018-09-06 02:41:13 +0000 |
commit | 625ced6e672daa892d334323cce6b3d42a6f929f (patch) | |
tree | d9f27ee4abbdaacdfcde37535bad9bc2fadb5125 /g10/build-packet.c | |
parent | artwork: State license of the logo (diff) | |
download | gnupg-625ced6e672daa892d334323cce6b3d42a6f929f.tar.gz gnupg-625ced6e672daa892d334323cce6b3d42a6f929f.zip |
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.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'g10/build-packet.c')
-rw-r--r-- | g10/build-packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/build-packet.c b/g10/build-packet.c index b4e03d007..3c500d34f 100644 --- a/g10/build-packet.c +++ b/g10/build-packet.c @@ -1297,7 +1297,7 @@ string_to_notation(const char *string,int is_utf8) } notation->name=xmalloc((s-string)+1); - strncpy(notation->name,string,s-string); + memcpy(notation->name,string,s-string); notation->name[s-string]='\0'; if(!saw_at && !opt.expert) |