mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
Fix broken usage of sizeof() in res_adsi.
........ Merged revisions 359088 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 359091 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@359095 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -593,7 +593,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 */
|
||||
|
Reference in New Issue
Block a user