[asterisk-commits] rmudgett: branch rmudgett/display_text r305629 - /team/rmudgett/display_text/...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 1 14:22:42 CST 2011


Author: rmudgett
Date: Tue Feb  1 14:22:36 2011
New Revision: 305629

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=305629
Log:
Include null terminator in AST_FRAME_TEXT buffer length.

Modified:
    team/rmudgett/display_text/channels/chan_sip.c
    team/rmudgett/display_text/channels/sig_pri.c

Modified: team/rmudgett/display_text/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/display_text/channels/chan_sip.c?view=diff&rev=305629&r1=305628&r2=305629
==============================================================================
--- team/rmudgett/display_text/channels/chan_sip.c (original)
+++ team/rmudgett/display_text/channels/chan_sip.c Tue Feb  1 14:22:36 2011
@@ -15475,7 +15475,7 @@
 		f.subclass.integer = 0;
 		f.offset = 0;
 		f.data.ptr = buf;
-		f.datalen = strlen(buf);
+		f.datalen = strlen(buf) + 1;
 		ast_queue_frame(p->owner, &f);
 		transmit_response(p, "202 Accepted", req); /* We respond 202 accepted, since we relay the message */
 		return;

Modified: team/rmudgett/display_text/channels/sig_pri.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/display_text/channels/sig_pri.c?view=diff&rev=305629&r1=305628&r2=305629
==============================================================================
--- team/rmudgett/display_text/channels/sig_pri.c (original)
+++ team/rmudgett/display_text/channels/sig_pri.c Tue Feb  1 14:22:36 2011
@@ -4102,7 +4102,7 @@
 					f.subclass.integer = 0;
 					f.offset = 0;
 					f.data.ptr = &subcmd->u.display.text;
-					f.datalen = subcmd->u.display.length;
+					f.datalen = subcmd->u.display.length + 1;
 					ast_queue_frame(owner, &f);
 					ast_channel_unlock(owner);
 				}




More information about the asterisk-commits mailing list