From 5804f16c5405e939dbefbaa1d212426c57216a18 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 10 Nov 2000 05:03:23 +0000 Subject: Update. 2000-11-09 Ulrich Drepper * inet/getnameinfo.c (getnameinfo): Use correct destination parameter for if_indextoname. Patch by Hideaki YOSHIFUJI . --- inet/getnameinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inet/getnameinfo.c') diff --git a/inet/getnameinfo.c b/inet/getnameinfo.c index 119def2f83..25a8af7a6c 100644 --- a/inet/getnameinfo.c +++ b/inet/getnameinfo.c @@ -312,7 +312,7 @@ getnameinfo (const struct sockaddr *sa, socklen_t addrlen, char *host, if (IN6_IS_ADDR_LINKLOCAL (&sin6p->sin6_addr) || IN6_IS_ADDR_MC_LINKLOCAL (&sin6p->sin6_addr)) { - if (if_indextoname (scopeid, scopebuf) == NULL) + if (if_indextoname (scopeid, scopeptr) == NULL) ++ni_numericscope; else scopelen = strlen (scopebuf); -- cgit 1.4.1