diff options
author | Dmitry-Me <wipedout@yandex.ru> | 2016-02-03 17:34:14 +0300 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-02-03 15:45:56 -0500 |
commit | a89c9a0d855bce735116acfe147b24e386f566ba (patch) | |
tree | f5ababe4be7260111f36a82b2c9dbdd4c19a2e32 /ssl/ssl_lib.c | |
parent | 0f45c26f5ad232aa895187ce1d2b5b486d09677b (diff) |
GH614: Use memcpy()/strdup() when possible
Signed-off-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Diffstat (limited to 'ssl/ssl_lib.c')
-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 878ff4c1fe..1154b71ab6 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -1982,7 +1982,7 @@ char *SSL_get_shared_ciphers(const SSL *s, char *buf, int len) *p = '\0'; return buf; } - strcpy(p, c->name); + memcpy(p, c->name, n + 1); p += n; *(p++) = ':'; len -= n + 1; |