mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
Merge "chan_vpb: Fix a gcc 7 out-of-bounds complaint" into 15
This commit is contained in:
@@ -1791,7 +1791,7 @@ static int vpb_digit_end(struct ast_channel *ast, char digit, unsigned int durat
|
|||||||
ast_verb(4, "%s: vpb_digit: asked to play digit[%s]\n", p->dev, s);
|
ast_verb(4, "%s: vpb_digit: asked to play digit[%s]\n", p->dev, s);
|
||||||
|
|
||||||
ast_mutex_lock(&p->play_dtmf_lock);
|
ast_mutex_lock(&p->play_dtmf_lock);
|
||||||
strncat(p->play_dtmf, s, sizeof(*p->play_dtmf) - strlen(p->play_dtmf) - 1);
|
strncat(p->play_dtmf, s, sizeof(p->play_dtmf) - strlen(p->play_dtmf) - 1);
|
||||||
ast_mutex_unlock(&p->play_dtmf_lock);
|
ast_mutex_unlock(&p->play_dtmf_lock);
|
||||||
|
|
||||||
ast_mutex_unlock(&p->lock);
|
ast_mutex_unlock(&p->lock);
|
||||||
|
|||||||
Reference in New Issue
Block a user