diff options
author | Richard Levitte <levitte@openssl.org> | 2001-06-07 04:42:34 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2001-06-07 04:42:34 +0000 |
commit | 44e48abc446cfe40784a234c65f91bbc5fd3841f (patch) | |
tree | 6a47574b86ed8229fc465c9594edf03eda4a1924 /ssl/s3_enc.c | |
parent | f420de027f83612d31fd98f32a4f57a566b54aba (diff) |
Use memmove() instead of memcpy() on areas that may overlap.
Spotted by Nalin Dahyabhai <nalin@redhat.com>
Diffstat (limited to 'ssl/s3_enc.c')
-rw-r--r-- | ssl/s3_enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/s3_enc.c b/ssl/s3_enc.c index b27e9562b9..8cd36a395c 100644 --- a/ssl/s3_enc.c +++ b/ssl/s3_enc.c @@ -363,7 +363,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 |