[asterisk-commits] tzafrir: branch 1.6.0 r218216 - in /branches/1.6.0: ./ channels/chan_phone.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun Sep 13 14:10:59 CDT 2009
Author: tzafrir
Date: Sun Sep 13 14:10:56 2009
New Revision: 218216
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=218216
Log:
gcc 4.4: Remove a nop memset size 0 that annoys gcc
This memset doesn't write beyond the end of the buffer.
(tmpbuf has size of 4).
Merged revisions 218184 via svnmerge from
http://svn.digium.com/svn/asterisk/trunk
Modified:
branches/1.6.0/ (props changed)
branches/1.6.0/channels/chan_phone.c
Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.0/channels/chan_phone.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.6.0/channels/chan_phone.c?view=diff&rev=218216&r1=218215&r2=218216
==============================================================================
--- branches/1.6.0/channels/chan_phone.c (original)
+++ branches/1.6.0/channels/chan_phone.c Sun Sep 13 14:10:56 2009
@@ -807,7 +807,6 @@
we have to pad it to 24 bytes still. */
if (frame->datalen == 4) {
if (p->silencesupression) {
- (void) memset(tmpbuf + 4, 0, sizeof(tmpbuf) - 4);
memcpy(tmpbuf, frame->data, 4);
expected = 24;
res = phone_write_buf(p, tmpbuf, expected, maxfr, 0);
More information about the asterisk-commits
mailing list