2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-05 17:15:31 +00:00

4748. [cleanup] Sprintf to snprintf coversions. [RT #46132]

This commit is contained in:
Mark Andrews
2017-10-03 14:54:19 +11:00
parent 7cb14b610e
commit a009d03a1a
55 changed files with 179 additions and 146 deletions

View File

@@ -1983,7 +1983,7 @@ isc_taskmgr_renderjson(isc_taskmgr_t *mgr0, json_object *tasks) {
CHECKMEM(taskobj);
json_object_array_add(array, taskobj);
sprintf(buf, "%p", task);
snprintf(buf, sizeof(buf), "%p", task);
obj = json_object_new_string(buf);
CHECKMEM(obj);
json_object_object_add(taskobj, "id", obj);