diff options
author | Pauli <paul.dale@oracle.com> | 2017-09-12 09:13:00 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2017-09-14 10:26:54 +1000 |
commit | 4cacc9d510c20368d13dcaf2c95c25d6d1ceef6c (patch) | |
tree | 9002903f4a5d89582cac7602d41df7903c7e277d /ssl | |
parent | eff1752b66cb7bf6ca8af816eb10ead26910d025 (diff) | |
download | openssl-4cacc9d510c20368d13dcaf2c95c25d6d1ceef6c.tar.gz |
Revert "GH614: Use memcpy()/strdup() when possible"
This reverts commit a89c9a0d855bce735116acfe147b24e386f566ba.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4357)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index a909a57eb8..a3c5151119 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -2471,7 +2471,7 @@ char *SSL_get_shared_ciphers(const SSL *s, char *buf, int len) *p = '\0'; return buf; } - memcpy(p, c->name, n + 1); + strcpy(p, c->name); p += n; *(p++) = ':'; len -= n + 1; |