ast_format_cap_get_names: To display all formats, the buffer was increased.

ASTERISK-25533 #close

Change-Id: Ie1a9d1a6511b3f1a56b93d04475fbf8a4e40010a
This commit is contained in:
Alexander Traud
2015-11-09 10:04:24 +01:00
parent 506aea26e6
commit 1bff400df7
27 changed files with 101 additions and 96 deletions

View File

@@ -2508,7 +2508,7 @@ static struct ast_channel *vpb_request(const char *type, struct ast_format_cap *
if (!(ast_format_cap_iscompatible_format(cap, ast_format_slin))) {
struct ast_str *buf;
buf = ast_str_create(256);
buf = ast_str_create(AST_FORMAT_CAP_NAMES_LEN);
if (!buf) {
return NULL;
}