]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix format string (issue #4945)
authorRussell Bryant <russell@russellbryant.com>
Fri, 26 Aug 2005 15:54:25 +0000 (15:54 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 26 Aug 2005 15:54:25 +0000 (15:54 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@6414 65c4cc65-6c06-0410-ace0-fbb531ad65f3

cli.c

diff --git a/cli.c b/cli.c
index d607094afc4f7691cc46601c6ca659660353a767..d6100b84aa8027dbecb7e8002d4e2eab44b629a1 100755 (executable)
--- 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