From 905ef0daeb2fa3d685d924cdd8cbd6a4b19df8b8 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 8 Dec 2008 03:59:18 +0000 Subject: * resolv/res_init.c (__res_vinit): Always assign to statp->nscount after reading name server list. --- nis/nss_nis/nis-hosts.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'nis/nss_nis/nis-hosts.c') diff --git a/nis/nss_nis/nis-hosts.c b/nis/nss_nis/nis-hosts.c index 8accf53edf..e1db5f531f 100644 --- a/nis/nss_nis/nis-hosts.c +++ b/nis/nss_nis/nis-hosts.c @@ -545,8 +545,7 @@ _nss_nis_gethostbyname4_r (const char *name, struct gaih_addrtuple **pat, size_t h_name_len = strlen (host.h_name) + 1; if (h_name_len >= buflen) goto erange; - /* Potentially the string and the destination buffer overlap. */ - (*pat)->name = memmove (buffer, host.h_name, h_name_len); + (*pat)->name = memcpy (buffer, host.h_name, h_name_len); free (result); -- cgit v1.2.3