]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merge of strdupa() fix for calendars categories priorities
authorJan Kalab <pitlicek@gmail.com>
Fri, 3 Sep 2010 13:09:23 +0000 (13:09 +0000)
committerJan Kalab <pitlicek@gmail.com>
Fri, 3 Sep 2010 13:09:23 +0000 (13:09 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@284853 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_calendar_ews.c

index f55a73df4ef1a60f076b2e335bde5a18e5abe8d4..840ca104e3801d7e4ad4ff5521aceb34214735cf 100644 (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);