bounds checks and scope masked var names.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6844 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2007-12-17 22:52:32 +00:00
parent 15d12ce20a
commit 577afaf6f6
3 changed files with 20 additions and 10 deletions

View File

@@ -128,9 +128,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_read(switch_media_bug_t *b
bytes = (datalen > frame->datalen) ? datalen : frame->datalen;
switch_assert( bytes <= maxlen );
if (bytes) {
int16_t tmp[960], *tp = tmp;
int16_t tmp[SWITCH_RECOMMENDED_BUFFER_SIZE], *tp = tmp;
dp = (int16_t *) data;
fp = (int16_t *) frame->data;