just doing a warning message for now eventually should make this -RIG_EINTERNAL
| 40 | // just doing a warning message for now |
| 41 | // eventually should make this -RIG_EINTERNAL |
| 42 | static int check_buffer_overflow(char *str, int len, int nlen) |
| 43 | { |
| 44 | if (len + 32 >= nlen) // make sure at least 32 bytes are available |
| 45 | { |
| 46 | rig_debug(RIG_DEBUG_ERR, |
| 47 | "%s: buffer overflow, len=%d, nlen=%d, str='%s', len+32 must be >= nlen\n", |
| 48 | __func__, len, nlen, str); |
| 49 | } |
| 50 | |
| 51 | return RIG_OK; |
| 52 | } |
| 53 | |
| 54 | int rig_sprintf_vfo(char *str, int nlen, vfo_t vfo) |
| 55 | { |
no test coverage detected