From: Mark Michelson Date: Wed, 7 Nov 2007 15:56:49 +0000 (+0000) Subject: Fixing a segfault in the manager "core show channels concise" command. X-Git-Tag: 1.4.14~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=63f6e6b0234cbff8176f48ccf74b25ec2202d505;p=thirdparty%2Fasterisk.git Fixing a segfault in the manager "core show channels concise" command. (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 --- diff --git a/main/manager.c b/main/manager.c index 3a15cfe387..54c7c1adf8 100644 --- a/main/manager.c +++ b/main/manager.c @@ -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);