diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-26 15:54:25 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-26 15:54:25 +0000 |
commit | 083372eda3c78dc1c6a417201d9abd4ba83eb4ff (patch) | |
tree | 0397d4300c99abc3ebf9d51cbe38d3d6143a3acc | |
parent | bbcc4c355e3235543d28698c9d5597835ab2b55d (diff) |
fix format string (issue #4945)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-0@6414 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | cli.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |