mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-20 12:20:12 +00:00
Merge of strdupa() fix for calendars categories priorities
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@284853 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -604,7 +604,7 @@ static int ewscal_write_event(struct ast_calendar_event *event)
|
||||
/* Event categories*/
|
||||
if (strlen(event->categories) > 0) {
|
||||
ast_str_append(&request, 0, "<Categories>");
|
||||
categories = strdupa(event->categories); /* Duplicate string, since strsep() is destructive */
|
||||
categories = ast_strdupa(event->categories); /* Duplicate string, since strsep() is destructive */
|
||||
category = strsep(&categories, ",");
|
||||
while (category != NULL) {
|
||||
ast_str_append(&request, 0, "<String>%s</String>", category);
|
||||
|
Reference in New Issue
Block a user