From: Anthony Minessale Date: Tue, 29 Jan 2008 20:58:30 +0000 (+0000) Subject: fix seg X-Git-Tag: v1.0-rc1~490 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2e2941e21cf09eb9f87a12abaa5b7599cc3ded9;p=thirdparty%2Ffreeswitch.git fix seg git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7429 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index 7a59a2a8f2..98481ea38f 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -1746,7 +1746,7 @@ static int show_callback(void *pArg, int argc, char **argv, char **columnNames) if (holder->http) { char aval[512]; - switch_amp_encode(argv[x], aval, sizeof(aval)); + switch_amp_encode(val, aval, sizeof(aval)); holder->stream->write_function(holder->stream, ""); holder->stream->write_function(holder->stream, "%s%s", aval, x == (argc - 1) ? "\n" : ""); } else {