use snprintf, not sprintf. sync with kame.
This commit is contained in:
parent
e556ec903d
commit
6cc1136ae1
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: getaddrinfo.c,v 1.53 2001/01/25 22:50:55 jdolecek Exp $ */
|
||||
/* $NetBSD: getaddrinfo.c,v 1.54 2001/08/20 02:33:31 itojun Exp $ */
|
||||
/* $KAME: getaddrinfo.c,v 1.29 2000/08/31 17:26:57 itojun Exp $ */
|
||||
|
||||
/*
|
||||
@ -79,7 +79,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: getaddrinfo.c,v 1.53 2001/01/25 22:50:55 jdolecek Exp $");
|
||||
__RCSID("$NetBSD: getaddrinfo.c,v 1.54 2001/08/20 02:33:31 itojun Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include "namespace.h"
|
||||
@ -1958,7 +1958,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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user