]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix character string being treated as format string
authorTerry Wilson <twilson@digium.com>
Tue, 18 Mar 2008 16:27:04 +0000 (16:27 +0000)
committerTerry Wilson <twilson@digium.com>
Tue, 18 Mar 2008 16:27:04 +0000 (16:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@109488 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/astobj.h

index 8e373c6c5ccaab206f3ae6252a2e0201cd735fe2..f10336494851eadfa17b1fd0e81002790d10d916 100644 (file)
@@ -743,7 +743,7 @@ extern "C" {
  * 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)
 }