Use memmove() instead of memcpy() on areas that may overlap.

Spotted by Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
Richard Levitte
2001-06-07 04:45:55 +00:00
parent 630c1aedd2
commit e90323844f
2 changed files with 2 additions and 2 deletions

View File

@@ -356,7 +356,7 @@ int ssl3_enc(SSL *s, int send)
if ((s->session == NULL) || (ds == NULL) ||
(enc == NULL))
{
memcpy(rec->data,rec->input,rec->length);
memmove(rec->data,rec->input,rec->length);
rec->input=rec->data;
}
else