aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-28 15:03:17 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-01-28 15:03:17 +0000
commita5a776b4d14f6e1571d353ce173beb15abf6a249 (patch)
treedb727642ac705ae148b5d462d885fc34d950303f /channels
parentafd928efa9c649a04ce4adb6bfa45a94ec4fbaa9 (diff)
Fix a bogus third argument to ast_copy_string().
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@243779 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 6597ba882..82516a21c 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -12706,10 +12706,11 @@ static int function_sipchaninfo_read(struct ast_channel *chan, char *cmd, char *
} 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;