dect
/
asterisk
Archived
13
0
Fork 0

Merge of strdupa() fix for calendars categories priorities

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@284853 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
pitel 2010-09-03 13:09:23 +00:00
parent b0211bcfa3
commit 5a75dcf7d5
1 changed files with 1 additions and 1 deletions

View File

@ -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);