summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-08-20 02:23:06 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-08-20 02:23:06 +0000
commit5d3b57fcfb5bf2993aa13630ca2f0768f2a45ad7 (patch)
treeb938114ff783db0cc7b4a27a1b888b21efe26d67 /lib
parent102fafd5462043d7631d4c0153d0bfbeea5fe1f4 (diff)
use snprintf, not sprintf. sync with kame
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/net/getaddrinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c
index cc313c5c6ad..f9ba1e55d71 100644
--- a/lib/libc/net/getaddrinfo.c
+++ b/lib/libc/net/getaddrinfo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getaddrinfo.c,v 1.29 2001/06/27 00:58:54 lebel Exp $ */
+/* $OpenBSD: getaddrinfo.c,v 1.30 2001/08/20 02:23:05 itojun Exp $ */
/* $KAME: getaddrinfo.c,v 1.31 2000/08/31 17:36:43 itojun Exp $ */
/*
@@ -1807,7 +1807,7 @@ res_querydomainN(name, domain, target)
h_errno = NO_RECOVERY;
return (-1);
}
- sprintf(nbuf, "%s.%s", name, domain);
+ snprintf(nbuf, sizeof(nbuf), "%s.%s", name, domain);
}
return (res_queryN(longname, target));
}