krb5_data_copy() should use memcpy()
This commit is contained in:
@@ -148,7 +148,7 @@ krb5_data_copy(krb5_data *p, const void *data, size_t len)
|
|||||||
if (len) {
|
if (len) {
|
||||||
if(krb5_data_alloc(p, len))
|
if(krb5_data_alloc(p, len))
|
||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
memmove(p->data, data, len);
|
memcpy(p->data, data, len);
|
||||||
} else
|
} else
|
||||||
p->data = NULL;
|
p->data = NULL;
|
||||||
p->length = len;
|
p->length = len;
|
||||||
|
Reference in New Issue
Block a user