[Bug libc/2773] New: socklen_t type buffer lengths in inet_ntop() functions
stlman at poczta dot fm
sourceware-bugzilla@sourceware.org
Wed Jun 14 20:49:00 GMT 2006
Why are the size variables in libc/resolv/inet_ntop.c of type socklen_t instead
of size_t while in fact they have nothing to do with any socket structures?
I ask about this because I just had a proble when I read the header file and the
manual (*not* carefuly enough) and put *thoughtlessly* sizeof(struct sockaddr)
as fourth argument. Of course it didn't work.
Indeed now for me this is only a matter of clarity but please answer.
--
Summary: socklen_t type buffer lengths in inet_ntop() functions
Product: glibc
Version: 2.3.6
Status: NEW
Severity: minor
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: stlman at poczta dot fm
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=2773
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Glibc-bugs
mailing list