[Asterisk-cvs] asterisk/channels chan_iax2.c,1.295,1.296
markster at lists.digium.com
markster at lists.digium.com
Mon May 30 09:54:27 CDT 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv13032/channels
Modified Files:
chan_iax2.c
Log Message:
Fix small sizeof bug (#4407)
Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.295
retrieving revision 1.296
diff -u -d -r1.295 -r1.296
--- chan_iax2.c 25 May 2005 17:18:05 -0000 1.295
+++ chan_iax2.c 30 May 2005 13:57:51 -0000 1.296
@@ -2945,7 +2945,7 @@
if (secret) {
if (secret[0] == '[') {
/* This is an RSA key, not a normal secret */
- ast_copy_string(iaxs[callno]->outkey, secret + 1, sizeof(iaxs[callno]->secret));
+ ast_copy_string(iaxs[callno]->outkey, secret + 1, sizeof(iaxs[callno]->outkey));
if (!ast_strlen_zero(iaxs[callno]->outkey)) {
iaxs[callno]->outkey[strlen(iaxs[callno]->outkey) - 1] = '\0';
}
More information about the svn-commits
mailing list