]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fixing a segfault in the manager "core show channels concise" command.
authorMark Michelson <mmichelson@digium.com>
Wed, 7 Nov 2007 15:56:49 +0000 (15:56 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 7 Nov 2007 15:56:49 +0000 (15:56 +0000)
(closes issue #11183, reported by arnd and patched by ys)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@89085 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/manager.c

index 3a15cfe38768d9bf8a12e1a406419b9ddacec872..54c7c1adf8195d99eb10d3437b6f9bbbb6d5917c 100644 (file)
@@ -1648,7 +1648,7 @@ static int action_command(struct mansession *s, const struct message *m)
                        term_strip(final_buf, buf, l);
                        final_buf[l] = '\0';
                }
-               astman_append(s, S_OR(final_buf, buf));
+               astman_append(s, "%s", S_OR(final_buf, buf));
                ast_free(buf);
        }
        close(fd);