channel: Extend size of buffer for codecs in "core show channeltype" CLI command.
authorJoshua Colp <jcolp@digium.com>
Mon, 1 Dec 2014 13:08:23 +0000 (13:08 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 1 Dec 2014 13:08:23 +0000 (13:08 +0000)
The static buffer for codecs when invoking the "core show channeltype" CLI command
did not have enough room for all codecs. This has been extended so it does.

ASTERISK-24542 #close
Reported by: snuffy
patches:
 channeltype-tech.diff submitted by snuffy (license 5024)

Review: https://reviewboard.asterisk.org/r/4204/
........

Merged revisions 428632 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@428633 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index 47a74b5..922fd93 100644 (file)
@@ -342,7 +342,7 @@ static char *complete_channeltypes(struct ast_cli_args *a)
 static char *handle_cli_core_show_channeltype(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
 {
        struct chanlist *cl = NULL;
-       struct ast_str *codec_buf = ast_str_alloca(64);
+       struct ast_str *codec_buf = ast_str_alloca(256);
 
        switch (cmd) {
        case CLI_INIT: