diff options
-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 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; } |