mirror of
https://github.com/Hamlib/Hamlib
synced 2026-08-13 17:32:05 -04:00
Fix sscanf check in smartsdr.c
https://github.com/Hamlib/Hamlib/security/code-scanning/3208
This commit is contained in:
parent
4b4b1b0d51
commit
8842ae7c29
1 changed files with 1 additions and 1 deletions
|
|
@ -462,7 +462,7 @@ static int smartsdr_parse_S(RIG *rig, char *s)
|
|||
rig_debug(RIG_DEBUG_VERBOSE, "%s: PTT state=%s, ptt=%d\n", __func__, state,
|
||||
priv->ptt);
|
||||
}
|
||||
else if (sscanf(p, "tx=%d\n", &priv->tx))
|
||||
else if (sscanf(p, "tx=%d\n", &priv->tx) == 1)
|
||||
{
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s: tx=%d\n", __func__, priv->tx);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue