[asterisk-commits] russell: branch russell/jack r94373 - /team/russell/jack/main/libresample/src/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Dec 20 18:47:42 CST 2007
Author: russell
Date: Thu Dec 20 18:47:42 2007
New Revision: 94373
URL: http://svn.digium.com/view/asterisk?view=rev&rev=94373
Log:
prevent a pointless write
Modified:
team/russell/jack/main/libresample/src/resample.c
Modified: team/russell/jack/main/libresample/src/resample.c
URL: http://svn.digium.com/view/asterisk/team/russell/jack/main/libresample/src/resample.c?view=diff&rev=94373&r1=94372&r2=94373
==============================================================================
--- team/russell/jack/main/libresample/src/resample.c (original)
+++ team/russell/jack/main/libresample/src/resample.c Thu Dec 20 18:47:42 2007
@@ -240,7 +240,7 @@
/* Copy as many samples as we can from the input buffer into X */
len = hp->XSize - hp->Xread;
- if (len >= (inBufferLen - (*inBufferUsed)))
+ if (len > (inBufferLen - (*inBufferUsed)))
len = (inBufferLen - (*inBufferUsed));
for(i=0; i<len; i++)
More information about the asterisk-commits
mailing list