Use memmove() instead of memcpy() on areas that may overlap.
[openssl.git] / ssl / t1_enc.c
index 3077e9b9b9dd357ce6c70bcccfe207b98d65f331..5f0976f9e7a9983e8176edf56d7ca1a9db195f10 100644 (file)
@@ -464,7 +464,7 @@ int tls1_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