diff options
Diffstat (limited to 'libc/dns/resolv/res_query.c')
-rw-r--r-- | libc/dns/resolv/res_query.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/dns/resolv/res_query.c b/libc/dns/resolv/res_query.c index 6cd9b15a6..09be8b4ab 100644 --- a/libc/dns/resolv/res_query.c +++ b/libc/dns/resolv/res_query.c @@ -414,7 +414,7 @@ res_nquerydomain(res_state statp, RES_SET_H_ERRNO(statp, NO_RECOVERY); return (-1); } - sprintf(nbuf, "%s.%s", name, domain); + snprintf(nbuf, sizeof(nbuf), "%s.%s", name, domain); } return (res_nquery(statp, longname, class, type, answer, anslen)); } |