Merged revisions 35915 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Sun, 25 Jun 2006 15:12:02 +0000 (15:12 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Sun, 25 Jun 2006 15:12:02 +0000 (15:12 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r35915 | tilghman | 2006-06-25 10:10:06 -0500 (Sun, 25 Jun 2006) | 2 lines

Bug 7425 - Size of buffer is passed in by len

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35916 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 498087c..f658cf6 100644 (file)
@@ -10913,7 +10913,7 @@ static int function_sippeer(struct ast_channel *chan, char *cmd, char *data, cha
        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")) {