mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
sizeof style
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: masterdump.c,v 1.61 2001/10/25 23:18:05 gson Exp $ */
|
||||
/* $Id: masterdump.c,v 1.62 2001/11/12 19:05:21 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -424,7 +424,7 @@ rdataset_totext(dns_rdataset_t *rdataset,
|
||||
|
||||
INDENT_TO(ttl_column);
|
||||
length = sprintf(ttlbuf, "%u", rdataset->ttl);
|
||||
INSIST(length <= sizeof ttlbuf);
|
||||
INSIST(length <= sizeof(ttlbuf));
|
||||
isc_buffer_availableregion(target, &r);
|
||||
if (r.length < length)
|
||||
return (ISC_R_NOSPACE);
|
||||
|
Reference in New Issue
Block a user