aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-09 18:36:03 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-09 18:36:03 +0000
commit0b6d13e716bc68171ad26ab72bb0c947011db235 (patch)
tree1e89a8704caabebac7afc23a9568ad26161d39e8 /res
parentb59775a80be18595c4304bb86de76439ee18f83b (diff)
Merged revisions 168090 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r168090 | tilghman | 2009-01-09 12:30:55 -0600 (Fri, 09 Jan 2009) | 3 lines When using ast_str with a non-ast_str-enabled API, we need to update the buffer or otherwise, we cannot use ast_str_strlen(). ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@168091 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_agi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/res/res_agi.c b/res/res_agi.c
index 0203bbb9a..cb0d7a917 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -1631,6 +1631,7 @@ static int handle_dbget(struct ast_channel *chan, AGI *agi, int argc, char **arg
do {
res = ast_db_get(argv[2], argv[3], buf->str, buf->len);
+ buf->used = strlen(buf->str);
if (buf->used < buf->len - 1) {
break;
}