[asterisk-commits] russell: branch 1.8 r359088 - /branches/1.8/res/res_adsi.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 13 19:27:37 CDT 2012
Author: russell
Date: Tue Mar 13 19:27:31 2012
New Revision: 359088
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=359088
Log:
Fix broken usage of sizeof() in res_adsi.
Modified:
branches/1.8/res/res_adsi.c
Modified: branches/1.8/res/res_adsi.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/res/res_adsi.c?view=diff&rev=359088&r1=359087&r2=359088
==============================================================================
--- branches/1.8/res/res_adsi.c (original)
+++ branches/1.8/res/res_adsi.c Tue Mar 13 19:27:31 2012
@@ -586,7 +586,7 @@
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 */
More information about the asterisk-commits
mailing list