diff options
Diffstat (limited to 'nss/digits_dots.c')
-rw-r--r-- | nss/digits_dots.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nss/digits_dots.c b/nss/digits_dots.c index dab64bfe1f..29aa5b1c5c 100644 --- a/nss/digits_dots.c +++ b/nss/digits_dots.c @@ -246,8 +246,7 @@ goto done; } - strcpy (hostname, name); - resbuf.h_name = hostname; + resbuf.h_name = strcpy (hostname, name); resbuf.h_aliases = *host_aliases; (*host_aliases)[0] = NULL; (*h_addr_ptrs)[0] = (char *) host_addr; |