[Asterisk-code-review] res agi: Fix malformed AGI usage response (asterisk[13])

Sean Bright asteriskteam at digium.com
Tue May 23 12:37:06 CDT 2017


Sean Bright has uploaded a new change for review. ( https://gerrit.asterisk.org/5697 )

Change subject: res_agi: Fix malformed AGI usage response
......................................................................

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
---
M res/res_agi.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/97/5697/1

diff --git a/res/res_agi.c b/res/res_agi.c
index cd0d621..dde3450 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -4039,7 +4039,7 @@
 				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");
 			}
 

-- 
To view, visit https://gerrit.asterisk.org/5697
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If190f1e9e37fe215fed95897d78d4a6e142b0020
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>



More information about the asterisk-code-review mailing list