diff --git a/lib/krb5/krbhst.c b/lib/krb5/krbhst.c index 2ba7239b4..639b4326a 100644 --- a/lib/krb5/krbhst.c +++ b/lib/krb5/krbhst.c @@ -255,7 +255,7 @@ _krb5_krbhost_info_move(krb5_context context, (*to)->ai = from->ai; from->ai = NULL; (*to)->next = NULL; - memmcpy((*to)->hostname, from->hostname, hostnamelen + 1); + memcpy((*to)->hostname, from->hostname, hostnamelen + 1); return 0; }