diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-09 18:30:55 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-09 18:30:55 +0000 |
commit | 205de4564cbe5841602d1018b59c61b4d7acf418 (patch) | |
tree | 819b3ea1eaeee30e84650f16a3a761e64f70c453 /res | |
parent | f5972bb0a62fdf940e44c8af6b94837397629226 (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: http://svn.digium.com/svn/asterisk/trunk@168090 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_agi.c | 1 |
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; } |