Improved debug msg in sprintflst.c

pull/1045/head
Mike Black W9MDB 2022-05-28 15:21:10 -05:00
rodzic 56260bb416
commit b50fe3b7b2
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -41,7 +41,7 @@ int check_buffer_overflow(char *str, int len, int nlen)
{
if (len + 32 >= nlen) // make sure at least 32 bytes are available
{
rig_debug(RIG_DEBUG_ERR, "%s: buffer overflow, len=%u, nlen=%d, str='%s'\n",
rig_debug(RIG_DEBUG_ERR, "%s: buffer overflow, len=%u, nlen=%d, str='%s', len+32 must be >= nlen\n",
__func__, len, nlen, str);
}