[svn-commits] branch 1.2 r35915 - /branches/1.2/channels/chan_sip.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Sun Jun 25 08:10:07 MST 2006
Author: tilghman
Date: Sun Jun 25 10:10:06 2006
New Revision: 35915
URL: http://svn.digium.com/view/asterisk?rev=35915&view=rev
Log:
Bug 7425 - Size of buffer is passed in by len
Modified:
branches/1.2/channels/chan_sip.c
Modified: branches/1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_sip.c?rev=35915&r1=35914&r2=35915&view=diff
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Sun Jun 25 10:10:06 2006
@@ -9371,7 +9371,7 @@
if (!strcasecmp(colname, "ip")) {
ast_copy_string(buf, peer->addr.sin_addr.s_addr ? ast_inet_ntoa(iabuf, sizeof(iabuf), peer->addr.sin_addr) : "", len);
} else if (!strcasecmp(colname, "status")) {
- peer_status(peer, buf, sizeof(buf));
+ peer_status(peer, buf, len);
} else if (!strcasecmp(colname, "language")) {
ast_copy_string(buf, peer->language, len);
} else if (!strcasecmp(colname, "regexten")) {
More information about the svn-commits
mailing list