]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 243780 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Thu, 28 Jan 2010 16:24:39 +0000 (16:24 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 28 Jan 2010 16:24:39 +0000 (16:24 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

................
  r243780 | russell | 2010-01-28 09:07:23 -0600 (Thu, 28 Jan 2010) | 9 lines

  Merged revisions 243779 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r243779 | russell | 2010-01-28 09:03:17 -0600 (Thu, 28 Jan 2010) | 2 lines

    Fix a bogus third argument to ast_copy_string().
  ........
................

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

channels/chan_sip.c

index b3f06bdfbf5a796eb612d0112a63a8026e8f1755..371b50b5560f72ac3d9a8af18325bf4c7ebdc334 100644 (file)
@@ -16605,10 +16605,11 @@ static int function_sipchaninfo_read(struct ast_channel *chan, const char *cmd,
        } else  if (!strcasecmp(data, "peername")) {
                ast_copy_string(buf, p->peername, len);
        } else if (!strcasecmp(data, "t38passthrough")) {
-               if (p->t38.state == T38_DISABLED)
-                       ast_copy_string(buf, "0", sizeof("0"));
-               else    /* T38 is offered or enabled in this call */
-                       ast_copy_string(buf, "1", sizeof("1"));
+               if (p->t38.state == T38_DISABLED) {
+                       ast_copy_string(buf, "0", len);
+               } else { /* T38 is offered or enabled in this call */
+                       ast_copy_string(buf, "1", len);
+               }
        } else {
                ast_channel_unlock(chan);
                return -1;