summaryrefslogtreecommitdiff
path: root/res/res_agi.c
diff options
context:
space:
mode:
authorSean Bright <sean.bright@gmail.com>2017-05-23 13:35:25 -0400
committerSean Bright <sean.bright@gmail.com>2017-05-23 13:35:25 -0400
commita007e438c36960d4179e2f188767e7ae14a204d1 (patch)
tree6f81dace7e83a7b1440375502b41f5ae230d7890 /res/res_agi.c
parentd0a1239f5560810662c84f38ebc342a39072e093 (diff)
res_agi: Fix malformed AGI usage response
If the generated XML documentation for a command does not end with a \n, the postamble of the usage message does not appear on its own line. ASTERISK-25662 #close Change-Id: If190f1e9e37fe215fed95897d78d4a6e142b0020
Diffstat (limited to 'res/res_agi.c')
-rw-r--r--res/res_agi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_agi.c b/res/res_agi.c
index cd0d621eb..dde3450a6 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -4039,7 +4039,7 @@ static enum agi_result agi_handle_command(struct ast_channel *chan, AGI *agi, ch
ast_agi_send(agi->fd, chan, "520 Invalid command syntax. Proper usage not available.\n");
} else {
ast_agi_send(agi->fd, chan, "520-Invalid command syntax. Proper usage follows:\n");
- ast_agi_send(agi->fd, chan, "%s", c->usage);
+ ast_agi_send(agi->fd, chan, "%s\n", c->usage);
ast_agi_send(agi->fd, chan, "520 End of proper usage.\n");
}