This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/2773] New: socklen_t type buffer lengths in inet_ntop() functions
- From: "stlman at poczta dot fm" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 14 Jun 2006 20:49:08 -0000
- Subject: [Bug libc/2773] New: socklen_t type buffer lengths in inet_ntop() functions
- Reply-to: sourceware-bugzilla at sourceware dot org
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.