[Asterisk-cvs] asterisk/channels chan_agent.c,1.131,1.132
russell at lists.digium.com
russell at lists.digium.com
Fri Apr 15 02:03:50 CDT 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv21017/channels
Modified Files:
chan_agent.c
Log Message:
fix potential seg fault in my patch that just went in, oops
Index: chan_agent.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_agent.c,v
retrieving revision 1.131
retrieving revision 1.132
diff -u -d -r1.131 -r1.132
--- chan_agent.c 15 Apr 2005 05:51:30 -0000 1.131
+++ chan_agent.c 15 Apr 2005 06:55:21 -0000 1.132
@@ -300,7 +300,7 @@
}
strncpy(p->password, password ? password : "", sizeof(p->password) - 1);
- strncpy(p->name, !ast_strlen_zero(name) ? name : "---", sizeof(p->name) - 1);
+ strncpy(p->name, name ? name : "", sizeof(p->name) - 1);
strncpy(p->moh, moh, sizeof(p->moh) - 1);
p->ackcall = ackcall;
p->autologoff = autologoff;
More information about the svn-commits
mailing list