From 154b00c7fb26cd1b08b238048d283a69abd75b23 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 7 Oct 2025 11:58:55 +0200 Subject: [PATCH] pipesz: use snprintf() instead of sprintf() Signed-off-by: Karel Zak --- misc-utils/pipesz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-utils/pipesz.c b/misc-utils/pipesz.c index 8a3da8612..5a2c0d023 100644 --- a/misc-utils/pipesz.c +++ b/misc-utils/pipesz.c @@ -140,7 +140,7 @@ static void do_fd(int fd) { char name[sizeof(stringify(INT_MIN)) + 3]; - sprintf(name, "fd %d", fd); + snprintf(name, sizeof(name), "fd %d", fd); if (opt_get) do_get(fd, name); -- 2.47.3