aboutsummaryrefslogtreecommitdiffstats
path: root/cli.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-26 15:54:25 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-26 15:54:25 +0000
commit083372eda3c78dc1c6a417201d9abd4ba83eb4ff (patch)
tree0397d4300c99abc3ebf9d51cbe38d3d6143a3acc /cli.c
parentbbcc4c355e3235543d28698c9d5597835ab2b55d (diff)
fix format string (issue #4945)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-0@6414 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cli.c')
-rwxr-xr-xcli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli.c b/cli.c
index d607094af..d6100b84a 100755
--- a/cli.c
+++ b/cli.c
@@ -920,7 +920,7 @@ static int handle_help(int fd, int argc, char *argv[]) {
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 @@ int ast_cli_command(int fd, char *s)
if (e) {
switch(e->handler(fd, x, argv)) {
case RESULT_SHOWUSAGE:
- ast_cli(fd, e->usage);
+ ast_cli(fd, "%s", e->usage);
break;
}
} else