The gai_strerror function doesn't return an error message for the
EAI_OVERFLOW error code.
getnameinfo can return the EAI_OVERFLOW error.
Patch attached.
Jean-Louis
Index: lib/gai_strerror.c
===================================================================
--- lib/gai_strerror.c (revision 5025)
+++ lib/gai_strerror.c (working copy)
@@ -52,6 +52,7 @@
{ EAI_SERVICE, N_("Servname not supported for ai_socktype") },
{ EAI_SOCKTYPE, N_("ai_socktype not supported") },
{ EAI_SYSTEM, N_("System error") },
+ { EAI_OVERFLOW, N_("Argument buffer too small") },
#ifdef __USE_GNU
{ EAI_INPROGRESS, N_("Processing request in progress") },
{ EAI_CANCELED, N_("Request canceled") },