aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authorroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-22 18:00:19 +0000
committerroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-22 18:00:19 +0000
commit43c9f4f73ad61263ec17740a93239169cceb492e (patch)
treee986568f88a614e071c962cdf8f58dd4b8d7b5c5 /channel.c
parent8ed9bfff202132a17d5d723ed1e8e1ad5483111f (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@8440 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r--channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channel.c b/channel.c
index 777432940..56d06978d 100644
--- a/channel.c
+++ b/channel.c
@@ -3830,7 +3830,7 @@ static void copy_data_from_queue(struct ast_channel_spy_queue *queue, short *buf
}
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;