mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
1458. [cleanup] sprintf() -> snprintf().
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: resolver.c,v 1.262 2003/02/26 22:54:28 marka Exp $ */
|
||||
/* $Id: resolver.c,v 1.263 2003/04/11 07:25:25 marka Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -5295,7 +5295,7 @@ dns_resolver_create(dns_view_t *view,
|
||||
DESTROYLOCK(&res->buckets[i].lock);
|
||||
goto cleanup_buckets;
|
||||
}
|
||||
sprintf(name, "res%u", i);
|
||||
snprintf(name, sizeof(name), "res%u", i);
|
||||
isc_task_setname(res->buckets[i].task, name, res);
|
||||
ISC_LIST_INIT(res->buckets[i].fctxs);
|
||||
res->buckets[i].exiting = ISC_FALSE;
|
||||
|
Reference in New Issue
Block a user