mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
Fix most leftover non-opaque ast_str uses.
Instead of calling str->str, one should use ast_str_buffer(str). Same goes for str->used as ast_str_strlen(str) and str->len as ast_str_size(str). Review: https://reviewboard.asterisk.org/r/2198 ........ Merged revisions 376469 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 376470 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@376471 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -873,7 +873,7 @@ static char *handle_cli_indication_show(struct ast_cli_entry *e, int cmd, struct
|
||||
(j == tz->nrringcadence - 1) ? "" : ",");
|
||||
}
|
||||
ast_str_append(&buf, 0, "\n");
|
||||
ast_cli(a->fd, "%s", buf->str);
|
||||
ast_cli(a->fd, "%s", ast_str_buffer(buf));
|
||||
|
||||
AST_LIST_TRAVERSE(&tz->tones, ts, entry) {
|
||||
ast_cli(a->fd, "%-7.7s %-15.15s %s\n", tz->country, ts->name, ts->data);
|
||||
|
||||
Reference in New Issue
Block a user