mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
[FreeTDM] Fix a couple of ftdm_log() format string errors.
... that could cause segmentation faults. Caught while working on __check_printf() support for ftdm_log(). Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
This commit is contained in:
@@ -255,7 +255,8 @@ FT_DECLARE (int) ftdm_config_get_cas_bits(char *strvalue, unsigned char *outbits
|
||||
if ('1' == cas_bits[x]) {
|
||||
*outbits |= bit;
|
||||
} else if ('0' != cas_bits[x]) {
|
||||
ftdm_log(FTDM_LOG_ERROR, "Invalid CAS pattern specified: %s, just 0 or 1 allowed for each bit\n");
|
||||
ftdm_log(FTDM_LOG_ERROR, "Invalid CAS pattern specified: %s, just 0 or 1 allowed for each bit\n",
|
||||
strvalue);
|
||||
return -1;
|
||||
}
|
||||
bit >>= 1;
|
||||
|
||||
Reference in New Issue
Block a user