mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
Fix user event body (bug #2713)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4072 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -54,12 +54,12 @@ static int userevent_exec(struct ast_channel *chan, void *data)
|
||||
}
|
||||
|
||||
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) {
|
||||
|
Reference in New Issue
Block a user