[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gai_strerror and EAI_OVERFLOW
From: |
Jean-Louis Martineau |
Subject: |
gai_strerror and EAI_OVERFLOW |
Date: |
Wed, 31 Jan 2007 07:06:59 -0500 |
User-agent: |
Thunderbird 1.5.0.9 (X11/20070102) |
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") },
- gai_strerror and EAI_OVERFLOW,
Jean-Louis Martineau <=