aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-28 15:07:23 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-28 15:07:23 +0000
commit07d74c25ba7b127783fe53aa6e5efa5f999df192 (patch)
tree1462264932cf2f77fce2cbf244dbd3626c02b49e
parent0f9cb6706560a3100a0723edcb0da5da69e7f308 (diff)
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/trunk@243780 f38db490-d61c-443f-a65b-d21fe96a405b
-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 260242677..bbba9acd8 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -18189,10 +18189,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;