[asterisk-commits] branch 1.2 - r8437 /branches/1.2/channel.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun Jan 22 10:47:14 MST 2006
Author: russell
Date: Sun Jan 22 11:47:13 2006
New Revision: 8437
URL: http://svn.digium.com/view/asterisk?rev=8437&view=rev
Log:
fix MixMonitor crash (issue #6321, probably others)
Modified:
branches/1.2/channel.c
Modified: branches/1.2/channel.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channel.c?rev=8437&r1=8436&r2=8437&view=diff
==============================================================================
--- branches/1.2/channel.c (original)
+++ branches/1.2/channel.c Sun Jan 22 11:47:13 2006
@@ -3830,7 +3830,7 @@
}
tocopy = (f->samples > samples) ? samples : f->samples;
- bytestocopy = ast_codec_get_len(queue->format, samples);
+ bytestocopy = ast_codec_get_len(queue->format, tocopy);
memcpy(buf, f->data, bytestocopy);
samples -= tocopy;
buf += tocopy;
More information about the asterisk-commits
mailing list