summaryrefslogtreecommitdiff
path: root/apps/app_queue.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2016-09-12 12:25:54 -0500
committerRichard Mudgett <rmudgett@digium.com>2016-09-12 12:27:11 -0500
commit7d7b23f04f2d45a531afd8fd8d0a172ab8411932 (patch)
tree9d6d2d33f730318508ed93152c36143aedcdde9b /apps/app_queue.c
parent50c3bb2631edc5063833d51a5d1091d5344d1b77 (diff)
app_queue: Fix CLI "queue show" and AMI Queues action output truncation.
The output of CLI "queue show" and AMI Queues action is truncated and "failed to extend from 240 to 327" messages are generated if the queue member and interface names are lengthy. * Increase the string buffer size from 240 to 512 in order to accommodate for more information fields added to the output since v1.8. ASTERISK-26360 #close Reported by: Richard Mudgett Change-Id: Id99c03cf5362453b80491a4b3b0434cb67aa966d
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r--apps/app_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index f9dd86b67..873ab0ce6 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -9318,7 +9318,7 @@ static void do_print(struct mansession *s, int fd, const char *str)
static char *__queues_show(struct mansession *s, int fd, int argc, const char * const *argv)
{
struct call_queue *q;
- struct ast_str *out = ast_str_alloca(240);
+ struct ast_str *out = ast_str_alloca(512);
int found = 0;
time_t now = time(NULL);
struct ao2_iterator queue_iter;