[Asterisk-cvs] asterisk/apps app_userevent.c,1.2,1.2.2.1
russell at lists.digium.com
russell at lists.digium.com
Sun Oct 24 20:44:52 CDT 2004
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv22585/apps
Modified Files:
Tag: v1-0
app_userevent.c
Log Message:
Fix user event body (bug #2713)
Index: app_userevent.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_userevent.c,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -d -r1.2 -r1.2.2.1
--- app_userevent.c 22 Jun 2004 19:32:52 -0000 1.2
+++ app_userevent.c 25 Oct 2004 00:48:28 -0000 1.2.2.1
@@ -54,12 +54,12 @@
}
strncpy(info, (char *)data, strlen((char *)data) + AST_MAX_EXTENSION-1);
+ snprintf(eventname, sizeof(eventname), "UserEvent%s", info);
eventbody = strchr(eventname, '|');
if (eventbody) {
*eventbody = '\0';
eventbody++;
}
- snprintf(eventname, sizeof(eventname), "UserEvent%s", info);
LOCAL_USER_ADD(u);
if(eventbody) {
More information about the svn-commits
mailing list