[asterisk-commits] pitel: branch 1.8 r284852 - /branches/1.8/res/res_calendar_ews.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Sep 3 08:07:43 CDT 2010


Author: pitel
Date: Fri Sep  3 08:07:39 2010
New Revision: 284852

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=284852
Log:
Calendar categories and priorities: strdupa() fix

Modified:
    branches/1.8/res/res_calendar_ews.c

Modified: branches/1.8/res/res_calendar_ews.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/res/res_calendar_ews.c?view=diff&rev=284852&r1=284851&r2=284852
==============================================================================
--- branches/1.8/res/res_calendar_ews.c (original)
+++ branches/1.8/res/res_calendar_ews.c Fri Sep  3 08:07:39 2010
@@ -604,7 +604,7 @@
 	/* 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);




More information about the asterisk-commits mailing list