]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 168090 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 9 Jan 2009 18:36:03 +0000 (18:36 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 9 Jan 2009 18:36:03 +0000 (18:36 +0000)
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: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@168091 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_agi.c

index 0203bbb9aaff6d2d5667be3c0e1cfa5d72883bca..cb0d7a91712cf1f27925e6d0464b4aed24b310a7 100644 (file)
@@ -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;
                }