[asterisk-commits] russell: trunk r359095 - in /trunk: ./ res/res_adsi.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 13 19:29:53 CDT 2012
Author: russell
Date: Tue Mar 13 19:29:47 2012
New Revision: 359095
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=359095
Log:
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
Modified:
trunk/ (props changed)
trunk/res/res_adsi.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.
Modified: trunk/res/res_adsi.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_adsi.c?view=diff&rev=359095&r1=359094&r2=359095
==============================================================================
--- trunk/res/res_adsi.c (original)
+++ trunk/res/res_adsi.c Tue Mar 13 19:29:47 2012
@@ -593,7 +593,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