[Asterisk-cvs] asterisk cli.c,1.53.2.8,1.53.2.9

russell russell
Fri Aug 26 11:52:45 CDT 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv6933

Modified Files:
      Tag: v1-0
	cli.c 
Log Message:
fix format string (issue #4945)


Index: cli.c
===================================================================
RCS file: /usr/cvsroot/asterisk/cli.c,v
retrieving revision 1.53.2.8
retrieving revision 1.53.2.9
diff -u -d -r1.53.2.8 -r1.53.2.9
--- cli.c	10 Jun 2005 20:52:27 -0000	1.53.2.8
+++ cli.c	26 Aug 2005 15:54:25 -0000	1.53.2.9
@@ -920,7 +920,7 @@
 		e = find_cli(argv + 1, 1);
 		if (e) {
 			if (e->usage)
-				ast_cli(fd, e->usage);
+				ast_cli(fd, "%s", e->usage);
 			else {
 				join(fullcmd, sizeof(fullcmd), argv+1);
 				ast_cli(fd, "No help text available for '%s'.\n", fullcmd);
@@ -1149,7 +1149,7 @@
 			if (e) {
 				switch(e->handler(fd, x, argv)) {
 				case RESULT_SHOWUSAGE:
-					ast_cli(fd, e->usage);
+					ast_cli(fd, "%s", e->usage);
 					break;
 				}
 			} else 




More information about the svn-commits mailing list