summaryrefslogtreecommitdiffstats
path: root/include/arpa
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2007-06-14 07:13:28 +0000
committerdelphij <delphij@FreeBSD.org>2007-06-14 07:13:28 +0000
commit687b4ebc1a6ad4c42fd9c704edd2eeb36d700ba4 (patch)
tree5499a5a1c9adc888dfad16a42918098269cca4c5 /include/arpa
parent9790f8d691dfa4d3c180c16eb2987d4963e7e5c8 (diff)
downloadFreeBSD-src-687b4ebc1a6ad4c42fd9c704edd2eeb36d700ba4.zip
FreeBSD-src-687b4ebc1a6ad4c42fd9c704edd2eeb36d700ba4.tar.gz
Require users to provide a length information for inet_ntoa_r,
this is common on other platforms. Reported by: pointyhat via kris
Diffstat (limited to 'include/arpa')
-rw-r--r--include/arpa/inet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/arpa/inet.h b/include/arpa/inet.h
index fdc7708..c6a4d07 100644
--- a/include/arpa/inet.h
+++ b/include/arpa/inet.h
@@ -148,7 +148,7 @@ uint16_t ntohs(uint16_t);
in_addr_t inet_addr(const char *);
/*const*/ char *inet_ntoa(struct in_addr);
-char *inet_ntoa_r(struct in_addr, char *buf);
+char *inet_ntoa_r(struct in_addr, char *buf, socklen_t size);
const char *inet_ntop(int, const void * __restrict, char * __restrict,
socklen_t);
int inet_pton(int, const char * __restrict, void * __restrict);
OpenPOWER on IntegriCloud