Allocate enough space initially for the message.
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 8 Dec 2008 18:49:50 +0000 (18:49 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 8 Dec 2008 18:49:50 +0000 (18:49 +0000)
(closes issue #14027)
 Reported by: junky
 Patches:
       M14027.diff uploaded by junky (license 177)

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

main/manager.c

index 945e369..47a7f42 100644 (file)
@@ -545,8 +545,8 @@ static char *handle_showmanager(struct ast_cli_entry *e, int cmd, struct ast_cli
        struct ast_manager_user *user = NULL;
        int l, which;
        char *ret = NULL;
-       struct ast_str *rauthority = ast_str_alloca(80);
-       struct ast_str *wauthority = ast_str_alloca(80);
+       struct ast_str *rauthority = ast_str_alloca(128);
+       struct ast_str *wauthority = ast_str_alloca(128);
 
        switch (cmd) {
        case CLI_INIT: