summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorray <>2007-02-14 05:48:46 +0000
committerray <>2007-02-14 05:48:46 +0000
commit7230877724a09677d61868f48bf4159e27e4da3e (patch)
treec911780657fa65bc4d81bb3760bdca493ff9ada8 /src/lib
parentd1c8932c1d4d3973f285faadc8ffb6c19023a2a1 (diff)
downloadopenbsd-7230877724a09677d61868f48bf4159e27e4da3e.tar.gz
openbsd-7230877724a09677d61868f48bf4159e27e4da3e.tar.bz2
openbsd-7230877724a09677d61868f48bf4159e27e4da3e.zip
Remove int pretending to be a size_t.
OK millert@.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libc/net/getaddrinfo.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/libc/net/getaddrinfo.c b/src/lib/libc/net/getaddrinfo.c
index 46a44e517c..01cc3a292b 100644
--- a/src/lib/libc/net/getaddrinfo.c
+++ b/src/lib/libc/net/getaddrinfo.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: getaddrinfo.c,v 1.57 2006/11/17 01:11:23 itojun Exp $ */ 1/* $OpenBSD: getaddrinfo.c,v 1.58 2007/02/14 05:48:46 ray Exp $ */
2/* $KAME: getaddrinfo.c,v 1.31 2000/08/31 17:36:43 itojun Exp $ */ 2/* $KAME: getaddrinfo.c,v 1.31 2000/08/31 17:36:43 itojun Exp $ */
3 3
4/* 4/*
@@ -1115,11 +1115,8 @@ getanswer(const querybuf *answer, int anslen, const char *qname, int qtype,
1115 } 1115 }
1116 } 1116 }
1117 if (!haveanswer) { 1117 if (!haveanswer) {
1118 int nn;
1119
1120 canonname = bp; 1118 canonname = bp;
1121 nn = strlen(bp) + 1; /* for the \0 */ 1119 bp += strlen(bp) + 1; /* for the \0 */
1122 bp += nn;
1123 } 1120 }
1124 1121
1125 /* don't overwrite pai */ 1122 /* don't overwrite pai */