]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix broken usage of sizeof() in res_adsi.
authorRussell Bryant <russell@russellbryant.com>
Wed, 14 Mar 2012 00:28:36 +0000 (00:28 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 14 Mar 2012 00:28:36 +0000 (00:28 +0000)
........

Merged revisions 359088 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@359091 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_adsi.c

index 77875249570013905c80a4fbde997a4b3996f9d8..684d8f213c95cbd7c863471aaa10746e3f005a01 100644 (file)
@@ -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 */