[asterisk-commits] tilghman: branch 1.6.1 r168092 - in /branches/1.6.1: ./ res/res_agi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jan 9 12:42:16 CST 2009


Author: tilghman
Date: Fri Jan  9 12:42:16 2009
New Revision: 168092

URL: http://svn.digium.com/view/asterisk?view=rev&rev=168092
Log:
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().
........

Modified:
    branches/1.6.1/   (props changed)
    branches/1.6.1/res/res_agi.c

Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.1/res/res_agi.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.1/res/res_agi.c?view=diff&rev=168092&r1=168091&r2=168092
==============================================================================
--- branches/1.6.1/res/res_agi.c (original)
+++ branches/1.6.1/res/res_agi.c Fri Jan  9 12:42:16 2009
@@ -1619,6 +1619,7 @@
 
 	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;
 		}




More information about the asterisk-commits mailing list