Commit a630d60b authored by Mark Andrews's avatar Mark Andrews
Browse files

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

                        dighost.c:get_trusted_key(). [RT #16678]
parent b53871d8
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.
[RT #16679]
......
......@@ -15,7 +15,7 @@
* 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
* \note
......@@ -3892,7 +3892,7 @@ get_trusted_key(isc_mem_t *mctx)
filename);
return (ISC_R_FAILURE);
}
while (fgets(buf, 1500, fp) != NULL) {
while (fgets(buf, sizeof(buf), fp) != NULL) {
result = opentmpkey(mctx,"tmp_file", &filetemp, &fptemp);
if (result != ISC_R_SUCCESS) {
fclose(fp);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment