From: Russell Bryant Date: Wed, 14 Mar 2012 00:28:36 +0000 (+0000) Subject: Fix broken usage of sizeof() in res_adsi. X-Git-Tag: 10.3.0~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c9a3910c5298314061d08fe81c5e4b50822c679;p=thirdparty%2Fasterisk.git Fix broken usage of sizeof() in res_adsi. ........ 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 --- diff --git a/res/res_adsi.c b/res/res_adsi.c index 7787524957..684d8f213c 100644 --- a/res/res_adsi.c +++ b/res/res_adsi.c @@ -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 */