[asterisk-commits] mmichelson: branch 1.4 r191628 - /branches/1.4/apps/app_chanspy.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sat May 2 05:21:04 CDT 2009
Author: mmichelson
Date: Sat May 2 05:21:00 2009
New Revision: 191628
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=191628
Log:
Move static buffers to outside for loops in app_chanspy.
Similar to seanbright's commit 191422, this moves some static buffers
to be defined outside of for loops since it is undefined if memory
will be re-used or if the stack will grow with each iteration of the
loop.
Modified:
branches/1.4/apps/app_chanspy.c
Modified: branches/1.4/apps/app_chanspy.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/apps/app_chanspy.c?view=diff&rev=191628&r1=191627&r2=191628
==============================================================================
--- branches/1.4/apps/app_chanspy.c (original)
+++ branches/1.4/apps/app_chanspy.c Sat May 2 05:21:00 2009
@@ -508,6 +508,8 @@
char nameprefix[AST_NAME_STRLEN];
char peer_name[AST_NAME_STRLEN + 5];
signed char zero_volume = 0;
+ char *groups[25];
+ char dup_group[512];
int waitms;
int res;
char *ptr;
@@ -557,9 +559,7 @@
next_channel(chan, prev, spec, exten, context, &chanspy_ds), next_chanspy_ds = NULL) {
const char *group;
int igrp = !mygroup;
- char *groups[25];
int num_groups = 0;
- char dup_group[512];
int x;
char *s;
More information about the asterisk-commits
mailing list