From: Nikos Mavrogiannopoulos Date: Wed, 1 Jul 2009 19:23:33 +0000 (+0300) Subject: There are cases where those buffers might overlap X-Git-Tag: gnutls_2_9_2~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=762950f92f97f8fc71b9acdedce5872ba9c272f0;p=thirdparty%2Fgnutls.git There are cases where those buffers might overlap --- diff --git a/lib/gnutls_str.c b/lib/gnutls_str.c index f1bc46e001..d29b642bf9 100644 --- a/lib/gnutls_str.c +++ b/lib/gnutls_str.c @@ -137,7 +137,7 @@ _gnutls_string_append_data (gnutls_string * dest, const void *data, dest->data = dest->allocd; } - memcpy (&dest->data[dest->length], data, data_size); + memmove (&dest->data[dest->length], data, data_size); dest->length = tot_len; return tot_len;