]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Bug 7425 - Size of buffer is passed in by len
authorTilghman Lesher <tilghman@meg.abyt.es>
Sun, 25 Jun 2006 15:10:06 +0000 (15:10 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Sun, 25 Jun 2006 15:10:06 +0000 (15:10 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@35915 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 5385ae1651a581ae5c97e9f57634f464349e62c2..fc616a535a4143df4525c2bace4654319d26fa55 100644 (file)
@@ -9371,7 +9371,7 @@ static char *function_sippeer(struct ast_channel *chan, char *cmd, char *data, c
        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")) {