From ed1210e97449ad80ee08aba5e0ea5cd712d2a494 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Sat, 8 Jan 2022 16:10:40 -0600 Subject: [PATCH] Change sprintf to snprint in rotctl_parse.c https://github.com/Hamlib/Hamlib/issues/857 --- tests/rotctl_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/rotctl_parse.c b/tests/rotctl_parse.c index f2017464d..d4676ff5c 100644 --- a/tests/rotctl_parse.c +++ b/tests/rotctl_parse.c @@ -2342,7 +2342,7 @@ declare_proto_rot(inter_set_conf) return -RIG_EINVAL; } - sprintf(buf, "%s=%s", arg1, arg2); + snprintf(buf, sizeof(buf), "%s=%s", arg1, arg2); return set_conf(rot, buf); }