[Asterisk-cvs] asterisk/apps app_userevent.c,1.2,1.3

markster at lists.digium.com markster at lists.digium.com
Sat Oct 23 23:13:55 CDT 2004


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv4527/apps

Modified Files:
	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.3
diff -u -d -r1.2 -r1.3
--- app_userevent.c	22 Jun 2004 19:32:52 -0000	1.2
+++ app_userevent.c	24 Oct 2004 03:17:37 -0000	1.3
@@ -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