mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-05 20:10:33 +00:00
Monotone-Parent: 94ff9caef87cde7157655b9f398a4481c6bf5b72
Monotone-Revision: 93bb2c6945d08d009e60e0b6280976b86b0b0aaf Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-06-03T23:06:52 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -183,7 +183,7 @@ static NSString *LDAPContactInfoAttribute = nil;
|
||||
|
||||
interval = [endDate timeIntervalSinceDate: startDate] + 60;
|
||||
intervals = interval / intervalSeconds; /* slices of 15 minutes */
|
||||
freeBusyItems = calloc (intervals, sizeof (int));
|
||||
freeBusyItems = NSZoneCalloc (NULL, intervals, sizeof (int));
|
||||
[self _fillFreeBusyItems: freeBusyItems count: intervals
|
||||
withRecords: [fb fetchFreeBusyInfosFrom: startDate to: endDate]
|
||||
fromStartDate: startDate toEndDate: endDate];
|
||||
@@ -192,7 +192,7 @@ static NSString *LDAPContactInfoAttribute = nil;
|
||||
for (count = 0; count < intervals; count++)
|
||||
[response appendFormat: @"%d,", *(freeBusyItems + count)];
|
||||
[response deleteCharactersInRange: NSMakeRange (intervals * 2 - 1, 1)];
|
||||
free (freeBusyItems);
|
||||
NSZoneFree (NULL, freeBusyItems);
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user