Skip to content

Commit

Permalink
use vsnprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
scareything committed Jan 3, 2025
1 parent 696efda commit e23d233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/ziti-edge-tunnel/netif_driver/linux/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e23d233

Please sign in to comment.