diff options
author | 2001-08-20 02:23:05 +0000 | |
---|---|---|
committer | 2001-08-20 02:23:05 +0000 | |
commit | c282d2985605eb4c219e0775e1e384847f6ee880 (patch) | |
tree | 06cc5f8049117a6fd9abeeca2c11a482bf8d8116 /lib/libc | |
parent | When attempting to change the default route under FreeBSD, don't write (diff) | |
download | wireguard-openbsd-c282d2985605eb4c219e0775e1e384847f6ee880.tar.xz wireguard-openbsd-c282d2985605eb4c219e0775e1e384847f6ee880.zip |
use snprintf, not sprintf. sync with kame
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/getaddrinfo.c | 4 |
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)); } |