[Asterisk-cvs] asterisk/channels chan_agent.c,1.81.2.3,1.81.2.4
russell at lists.digium.com
russell at lists.digium.com
Fri Apr 15 02:15:09 CDT 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv21125/channels
Modified Files:
Tag: v1-0
chan_agent.c
Log Message:
fix bogus output from 'show agents' with no name (bug #4030)
Index: chan_agent.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_agent.c,v
retrieving revision 1.81.2.3
retrieving revision 1.81.2.4
diff -u -d -r1.81.2.3 -r1.81.2.4
--- chan_agent.c 5 Apr 2005 08:32:04 -0000 1.81.2.3
+++ chan_agent.c 15 Apr 2005 07:06:40 -0000 1.81.2.4
@@ -193,12 +193,12 @@
if ((password = strchr(tmp, ','))) {
*password = '\0';
password++;
- while (*password < 33) password++;
+ while (*password && *password < 33) password++;
}
if (password && (name = strchr(password, ','))) {
*name = '\0';
name++;
- while (*name < 33) name++;
+ while (*name && *name < 33) name++;
}
prev=NULL;
p = agents;
More information about the svn-commits
mailing list