[asterisk-commits] russell: branch 10 r359091 - in /branches/10: ./ res/res_adsi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 13 19:28:42 CDT 2012


Author: russell
Date: Tue Mar 13 19:28:36 2012
New Revision: 359091

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=359091
Log:
Fix broken usage of sizeof() in res_adsi.
........

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

Modified:
    branches/10/   (props changed)
    branches/10/res/res_adsi.c

Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/10/res/res_adsi.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/res/res_adsi.c?view=diff&rev=359091&r1=359090&r2=359091
==============================================================================
--- branches/10/res/res_adsi.c (original)
+++ branches/10/res/res_adsi.c Tue Mar 13 19:28:36 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