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
This commit is contained in:
Russell Bryant
2012-03-14 00:27:31 +00:00
parent 48b1c5e5a6
commit 30d3e59447
+1 -1
View File
@@ -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 */