summaryrefslogtreecommitdiffstats
path: root/libc/netbsd/resolv/res_cache.c
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2010-03-09 11:13:35 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-03-09 11:13:35 -0800
commit92e712f60dae8f099004c439291362efd02f6889 (patch)
tree470c169003761ecd1b8e03bc1ff84ff4514c0a69 /libc/netbsd/resolv/res_cache.c
parent55cd975f3467f8803a997061b4a60c91393d7528 (diff)
parentd378c68d74cb4fdac450650fe816c9d649c8edaf (diff)
downloadbionic-92e712f60dae8f099004c439291362efd02f6889.zip
bionic-92e712f60dae8f099004c439291362efd02f6889.tar.gz
bionic-92e712f60dae8f099004c439291362efd02f6889.tar.bz2
Merge "Fix spurious DNS lookups in the C library."
Diffstat (limited to 'libc/netbsd/resolv/res_cache.c')
-rw-r--r--libc/netbsd/resolv/res_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/netbsd/resolv/res_cache.c b/libc/netbsd/resolv/res_cache.c
index 2c912de..2621a7b 100644
--- a/libc/netbsd/resolv/res_cache.c
+++ b/libc/netbsd/resolv/res_cache.c
@@ -251,7 +251,7 @@ _bprint( char* p, char* end, const char* format, ... )
return p;
va_start(args, format);
- n = snprintf( p, avail, format, args);
+ n = vsnprintf( p, avail, format, args);
va_end(args);
/* certain C libraries return -1 in case of truncation */