[svn-commits] twilson: branch 1.2 r109488 - /branches/1.2/include/asterisk/astobj.h

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Mar 18 11:27:05 CDT 2008


Author: twilson
Date: Tue Mar 18 11:27:04 2008
New Revision: 109488

URL: http://svn.digium.com/view/asterisk?view=rev&rev=109488
Log:
Fix character string being treated as format string

Modified:
    branches/1.2/include/asterisk/astobj.h

Modified: branches/1.2/include/asterisk/astobj.h
URL: http://svn.digium.com/view/asterisk/branches/1.2/include/asterisk/astobj.h?view=diff&rev=109488&r1=109487&r2=109488
==============================================================================
--- branches/1.2/include/asterisk/astobj.h (original)
+++ branches/1.2/include/asterisk/astobj.h Tue Mar 18 11:27:04 2008
@@ -743,7 +743,7 @@
  * descriptor.
  */
 #define ASTOBJ_CONTAINER_DUMP(fd,s,slen,container) \
-	ASTOBJ_CONTAINER_TRAVERSE(container, 1, do { ASTOBJ_DUMP(s,slen,iterator); ast_cli(fd, s); } while(0))
+	ASTOBJ_CONTAINER_TRAVERSE(container, 1, do { ASTOBJ_DUMP(s,slen,iterator); ast_cli(fd, "%s", s); } while(0))
 
 #if defined(__cplusplus) || defined(c_plusplus)
 }




More information about the svn-commits mailing list