Fix broken usage of sizeof() in res_adsi.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@359088 65c4cc65-6c06-0410-ace0-fbb531ad65f3
certified/1.8.15
Russell Bryant 13 years ago
parent 48b1c5e5a6
commit 30d3e59447

@ -586,7 +586,7 @@ int AST_OPTIONAL_API_NAME(ast_adsi_read_encoded_dtmf)(struct ast_channel *chan,
int bytes = 0, res, gotstar = 0, pos = 0;
unsigned char current = 0;
memset(buf, 0, sizeof(buf));
memset(buf, 0, maxlen);
while (bytes <= maxlen) {
/* Wait up to a second for a digit */

Loading…
Cancel
Save