1458.   [cleanup]       sprintf() -> snprintf().
This commit is contained in:
Mark Andrews
2003-08-27 07:22:41 +00:00
parent f046c1a3af
commit dd8e7329b1
16 changed files with 90 additions and 76 deletions

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: resolver.c,v 1.218.2.18.4.18 2003/08/27 02:13:48 marka Exp $ */
/* $Id: resolver.c,v 1.218.2.18.4.19 2003/08/27 07:22:35 marka Exp $ */
#include <config.h>
@@ -5104,7 +5104,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;