From: Francis Dupont Date: Mon, 10 Aug 2026 13:11:16 +0000 (+0200) Subject: [#4726] Removed another sprintf X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;ds=sidebyside;p=thirdparty%2Fkea.git [#4726] Removed another sprintf --- diff --git a/src/lib/config/command-socket.dox b/src/lib/config/command-socket.dox index afa6c5f393..545635aa46 100644 --- a/src/lib/config/command-socket.dox +++ b/src/lib/config/command-socket.dox @@ -116,7 +116,7 @@ int main(int argc, const char* argv[]) { // Send a command to list all available commands. char buf[1024]; - sprintf(buf, "{ \"command\": \"list-commands\" }"); + snprintf(buf, sizeof(buf), "{ \"command\": \"list-commands\" }"); int bytes_sent = send(socket_fd, buf, strlen(buf), 0); printf("%d bytes sent\n", bytes_sent);