summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorDmitry-Me <wipedout@yandex.ru>2016-02-03 17:34:14 +0300
committerRich Salz <rsalz@openssl.org>2016-02-03 15:45:56 -0500
commita89c9a0d855bce735116acfe147b24e386f566ba (patch)
treef5ababe4be7260111f36a82b2c9dbdd4c19a2e32 /ssl
parent0f45c26f5ad232aa895187ce1d2b5b486d09677b (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')
-rw-r--r--ssl/ssl_lib.c2
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;