Change sprintf to snprint in rotctl_parse.c

https://github.com/Hamlib/Hamlib/issues/857
pull/928/head
Mike Black W9MDB 2022-01-08 16:10:40 -06:00
rodzic d96d616ce5
commit ed1210e974
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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);
}