mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-13 14:39:59 -04:00
1470. [bug] incorrect length passed to snprintf. [RT #5966]
This commit is contained in:
parent
14c4322c4d
commit
fc87397df6
2 changed files with 4 additions and 3 deletions
2
CHANGES
2
CHANGES
|
|
@ -1,3 +1,5 @@
|
|||
1470. [bug] incorrect length passed to snprintf. [RT #5966]
|
||||
|
||||
1469. [func] Log end of outgoing zone transfer at same level
|
||||
as the start of transfer is logged. [RT #4441]
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rbt.c,v 1.123 2002/08/27 04:53:42 marka Exp $ */
|
||||
/* $Id: rbt.c,v 1.124 2003/05/08 04:03:25 marka Exp $ */
|
||||
|
||||
/* Principal Authors: DCL */
|
||||
|
||||
|
|
@ -1412,8 +1412,7 @@ dns_rbt_formatnodename(dns_rbtnode_t *node, char *printname, unsigned int size)
|
|||
if (result == ISC_R_SUCCESS)
|
||||
dns_name_format(name, printname, size);
|
||||
else
|
||||
snprintf(printname, sizeof(printname),
|
||||
"<error building name: %s>",
|
||||
snprintf(printname, size, "<error building name: %s>",
|
||||
dns_result_totext(result));
|
||||
|
||||
return (printname);
|
||||
|
|
|
|||
Loading…
Reference in a new issue