summaryrefslogtreecommitdiff
path: root/res/res_agi.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2009-01-09 18:30:55 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2009-01-09 18:30:55 +0000
commit4a9e8078b9733b572795ed8c208c45dd35e50bb0 (patch)
tree819b3ea1eaeee30e84650f16a3a761e64f70c453 /res/res_agi.c
parent23755124baa04816ef70f8b1704fe1c89acb3329 (diff)
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: https://origsvn.digium.com/svn/asterisk/trunk@168090 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_agi.c')
-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 926d4d95b..6151549e3 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -1861,6 +1861,7 @@ static int handle_dbget(struct ast_channel *chan, AGI *agi, int argc, char **arg
do {
res = ast_db_get(argv[2], argv[3], ast_str_buffer(buf), ast_str_size(buf));
+ ast_str_update(buf);
if (ast_str_strlen(buf) < ast_str_size(buf) - 1) {
break;
}