fix segfault from stack corruption.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@889 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2006-03-21 18:32:39 +00:00
parent c7ab1b5885
commit ce72c5d1c8
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@
static int switch_console_process(char *cmd)
{
char *arg = NULL;
char retbuf[SWITCH_RECCOMMENDED_BUFFER_SIZE * 10] = "";
char *retbuf = (char *)malloc(SWITCH_RECCOMMENDED_BUFFER_SIZE * 10);
#ifdef EMBED_PERL
const char *perlhelp = "perl - execute some perl. (print to STDERR if you want to see it.)\n";