2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

2152. [cleanup] Use sizeof(buf) instead of fixed number in

dighost.c:get_trusted_key(). [RT #16678]
This commit is contained in:
Mark Andrews 2007-02-27 00:58:08 +00:00
parent b53871d859
commit a630d60b8b
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2152. [cleanup] Use sizeof(buf) instead of fixed number in
dighost.c:get_trusted_key(). [RT #16678]
2151. [bug] Missing newline in usage message for journalprint. 2151. [bug] Missing newline in usage message for journalprint.
[RT #16679] [RT #16679]

View File

@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: dighost.c,v 1.300 2007/02/26 00:27:09 marka Exp $ */ /* $Id: dighost.c,v 1.301 2007/02/27 00:58:08 marka Exp $ */
/*! \file /*! \file
* \note * \note
@ -3892,7 +3892,7 @@ get_trusted_key(isc_mem_t *mctx)
filename); filename);
return (ISC_R_FAILURE); return (ISC_R_FAILURE);
} }
while (fgets(buf, 1500, fp) != NULL) { while (fgets(buf, sizeof(buf), fp) != NULL) {
result = opentmpkey(mctx,"tmp_file", &filetemp, &fptemp); result = opentmpkey(mctx,"tmp_file", &filetemp, &fptemp);
if (result != ISC_R_SUCCESS) { if (result != ISC_R_SUCCESS) {
fclose(fp); fclose(fp);