aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-28 16:25:41 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-28 16:25:41 +0000
commit96c29a001f50026b35b2df4c243eeb4f9320ef40 (patch)
treea738b265c837883bd5a6c4b2138a428aeddbde74 /channels
parent676ffba8109695c482bf71badc181d6da0039f14 (diff)
Merged revisions 243780 via svnmerge from
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: http://svn.digium.com/svn/asterisk/branches/1.6.2@243854 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 6f2435e10..92860b27f 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -17380,10 +17380,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;