Index: apps/app_milliwatt.c
===================================================================
--- apps/app_milliwatt.c	(revision 359644)
+++ apps/app_milliwatt.c	(revision 359645)
@@ -74,7 +74,7 @@
 static int milliwatt_generate(struct ast_channel *chan, void *data, int len, int samples)
 {
 	unsigned char buf[AST_FRIENDLY_OFFSET + 640];
-	const int maxsamples = ARRAY_LEN(buf);
+	const int maxsamples = ARRAY_LEN(buf) - (AST_FRIENDLY_OFFSET / sizeof(buf[0]));
 	int i, *indexp = (int *) data;
 	struct ast_frame wf = {
 		.frametype = AST_FRAME_VOICE,

Property changes on: .
___________________________________________________________________
Modified: branch-1.4-blocked
   - /branches/1.4:279344,281185,286070,286381,288116,288412,293922,294163,301869,302916,311199,311201,320055,320393,322657,322698
   + /branches/1.4:279344,281185,286070,286381,288116,288412,293922,294163,301869,302916,311199,311201,320055,320393,322657,322698,359615

