mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
4748. [cleanup] Sprintf to snprintf coversions. [RT #46132]
This commit is contained in:
@@ -4151,7 +4151,7 @@ isc_socketmgr_renderjson(isc_socketmgr_t *mgr, json_object *stats) {
|
||||
|
||||
LOCK(&sock->lock);
|
||||
|
||||
sprintf(buf, "%p", sock);
|
||||
snprintf(buf, sizeof(buf), "%p", sock);
|
||||
obj = json_object_new_string(buf);
|
||||
CHECKMEM(obj);
|
||||
json_object_object_add(entry, "id", obj);
|
||||
|
Reference in New Issue
Block a user