kopia lustrzana https://github.com/Hamlib/Hamlib
Improved debug msg in sprintflst.c
rodzic
56260bb416
commit
b50fe3b7b2
|
@ -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
|
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);
|
__func__, len, nlen, str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue