From e23d233d32e561d2204fd88afdc95fd6bd27e4d1 Mon Sep 17 00:00:00 2001 From: Shawn Carey Date: Fri, 3 Jan 2025 10:22:15 -0500 Subject: [PATCH] use vsnprintf --- programs/ziti-edge-tunnel/netif_driver/linux/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/ziti-edge-tunnel/netif_driver/linux/utils.c b/programs/ziti-edge-tunnel/netif_driver/linux/utils.c index 14ba27b7..a94f5b43 100644 --- a/programs/ziti-edge-tunnel/netif_driver/linux/utils.c +++ b/programs/ziti-edge-tunnel/netif_driver/linux/utils.c @@ -24,7 +24,7 @@ int run_command_va(bool log_nonzero_ec, const char* cmd, va_list args) { char cmdline[1024]; - vsprintf(cmdline, cmd, args); + vsnprintf(cmdline, sizeof(cmdline), cmd, args); int rc = system(cmdline); if (rc != 0 && log_nonzero_ec) {