aboutsummaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
authorRobert Greenwalt <rgreenwalt@google.com>2012-03-09 11:34:27 -0800
committerRobert Greenwalt <rgreenwalt@google.com>2012-03-09 11:50:46 -0800
commitc59ba4595be25a1213955233fcf9bcd1afe6438e (patch)
treeeacafbaa2b301b0e28ab145cb4f28e10ae2fd212 /libc
parentca9a0712b89eee017c2a40056c101d86c1f7d02f (diff)
downloadandroid_bionic-c59ba4595be25a1213955233fcf9bcd1afe6438e.tar.gz
android_bionic-c59ba4595be25a1213955233fcf9bcd1afe6438e.tar.bz2
android_bionic-c59ba4595be25a1213955233fcf9bcd1afe6438e.zip
Use new binary code format
3-digits + null. Old was 3-digits + space + null. Change-Id: If5fdf9ced073f432ace3a76858025ad651c74e3d
Diffstat (limited to 'libc')
-rw-r--r--libc/netbsd/net/getaddrinfo.c2
-rw-r--r--libc/netbsd/net/getnameinfo.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libc/netbsd/net/getaddrinfo.c b/libc/netbsd/net/getaddrinfo.c
index 7dd65ff3a..326b09c58 100644
--- a/libc/netbsd/net/getaddrinfo.c
+++ b/libc/netbsd/net/getaddrinfo.c
@@ -479,7 +479,7 @@ android_getaddrinfo_proxy(
goto exit;
}
- char buf[5];
+ char buf[4];
// read result code for gethostbyaddr
if (fread(buf, 1, sizeof(buf), proxy) != sizeof(buf)) {
goto exit;
diff --git a/libc/netbsd/net/getnameinfo.c b/libc/netbsd/net/getnameinfo.c
index eed23a7c7..8a1e95e08 100644
--- a/libc/netbsd/net/getnameinfo.c
+++ b/libc/netbsd/net/getnameinfo.c
@@ -201,7 +201,7 @@ android_gethostbyaddr_proxy(char* nameBuf, size_t nameBufLen, const void *addr,
}
result = 0;
- char msg_buf[5];
+ char msg_buf[4];
// read result code for gethostbyaddr
if (fread(msg_buf, 1, sizeof(msg_buf), proxy) != sizeof(msg_buf)) {
goto exit;