From 04f4188e6dd14e33c56862e6c4d8b1db54b203c0 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Wed, 5 Oct 2005 00:28:04 +0000 Subject: 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 --- apps/app_meetme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/app_meetme.c') 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) { -- cgit v1.2.3