From: Jan Kalab Date: Fri, 3 Sep 2010 13:09:23 +0000 (+0000) Subject: Merge of strdupa() fix for calendars categories priorities X-Git-Tag: 11.0.0-beta1~2380 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=063d1b72cb58086571b51a7312543e8be9436bb1;p=thirdparty%2Fasterisk.git Merge of strdupa() fix for calendars categories priorities git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@284853 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_calendar_ews.c b/res/res_calendar_ews.c index f55a73df4e..840ca104e3 100644 --- a/res/res_calendar_ews.c +++ b/res/res_calendar_ews.c @@ -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 = 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, "%s", category);