[Asterisk-cvs] asterisk/channels chan_iax2.c,1.140,1.141
markster at lists.digium.com
markster at lists.digium.com
Thu May 6 16:30:39 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv11450/channels
Modified Files:
chan_iax2.c
Log Message:
Fix silly typo in iax2 where strlen was used instead of sizeof
Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.140
retrieving revision 1.141
diff -u -d -r1.140 -r1.141
--- chan_iax2.c 5 May 2004 22:13:27 -0000 1.140
+++ chan_iax2.c 6 May 2004 20:39:31 -0000 1.141
@@ -2938,7 +2938,7 @@
ast_cli(fd, FORMAT, "Username", "Secret", "Authen", "Def.Context", "A/C");
for(user=userl.users;user;user=user->next) {
if (!ast_strlen_zero(user->secret)) {
- strncpy(auth,user->secret,strlen(auth)-1);
+ strncpy(auth,user->secret,sizeof(auth)-1);
} else if (!ast_strlen_zero(user->inkeys)) {
sprintf(auth,"Key: %-15.15s ",user->inkeys);
} else
More information about the svn-commits
mailing list