aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_meetme.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-05 00:28:04 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-05 00:28:04 +0000
commit04f4188e6dd14e33c56862e6c4d8b1db54b203c0 (patch)
tree3b04021cbf9ebe808e90d46c901c6a1975d26fd6 /apps/app_meetme.c
parent5e1b84025777aa3944bcdff59da6d3d64f5f1d56 (diff)
don't twiddle memory that doesn't belong to us (issue #5348)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6727 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_meetme.c')
-rwxr-xr-xapps/app_meetme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c
index 77a2a406b..dc4f8fb03 100755
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -389,7 +389,7 @@ static void adjust_volume(struct ast_frame *f, int vol)
int count;
short *fdata = f->data;
- for (count = 0; count < f->datalen; count++) {
+ for (count = 0; count < (f->datalen / sizeof(*fdata)); count++) {
if (vol > 0) {
fdata[count] *= abs(vol);
} else if (vol < 0) {