diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-13 08:36:35 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-13 08:36:35 +0000 |
commit | a41b34a63c52608e7e5c8e6aced613815461f4c2 (patch) | |
tree | 0559c99680217b78c0bda37a131b5f09794f43c6 /apps/app_followme.c | |
parent | b298a3aa9b396c4055bf75104b4fb89212c44d4a (diff) |
Merge ast_str_opaque branch (discontinue usage of ast_str internals)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@163991 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_followme.c')
-rw-r--r-- | apps/app_followme.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/app_followme.c b/apps/app_followme.c index bce763f29..62a3cb248 100644 --- a/apps/app_followme.c +++ b/apps/app_followme.c @@ -960,9 +960,8 @@ static struct call_followme *find_realtime(const char *name) } /* This one has to exist; it was part of the query */ ordstr = ast_variable_retrieve(cfg, catg, "ordinal"); - ast_str_make_space(&str, strlen(numstr) + 1); - ast_copy_string(str->str, numstr, str->len); - if ((cur = create_followme_number(str->str, timeout, atoi(ordstr)))) { + ast_str_set(&str, 0, "%s", numstr); + if ((cur = create_followme_number(ast_str_buffer(str), timeout, atoi(ordstr)))) { AST_LIST_INSERT_TAIL(&new->numbers, cur, entry); } } |