mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
4748. [cleanup] Sprintf to snprintf coversions. [RT #46132]
This commit is contained in:
@@ -2593,7 +2593,7 @@ json_renderctx(isc__mem_t *ctx, summarystat_t *summary, json_object *array) {
|
||||
ctxobj = json_object_new_object();
|
||||
CHECKMEM(ctxobj);
|
||||
|
||||
sprintf(buf, "%p", ctx);
|
||||
snprintf(buf, sizeof(buf), "%p", ctx);
|
||||
obj = json_object_new_string(buf);
|
||||
CHECKMEM(obj);
|
||||
json_object_object_add(ctxobj, "id", obj);
|
||||
|
Reference in New Issue
Block a user