From: wolfgang Date: Mon, 28 Jan 2008 18:58:25 +0000 (+0000) Subject: git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1345 d1b88da0-ebda-0310... X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0c04e1c25825a2bf380caabac606c87fc15957e;p=scalable-opengroupware.org git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1345 d1b88da0-ebda-0310-925b-ed51d893ca5b --- diff --git a/SOPE/NGCards/iCalRecurrenceRule.m b/SOPE/NGCards/iCalRecurrenceRule.m index a18712dc..afeb28d0 100644 --- a/SOPE/NGCards/iCalRecurrenceRule.m +++ b/SOPE/NGCards/iCalRecurrenceRule.m @@ -330,17 +330,18 @@ - (iCalWeekDay) weekDayFromICalRepresentation: (NSString *) _day { - NSString *day; /* be tolerant */ iCalWeekDay foundDay; unichar chars[2]; + unsigned int dayLength; foundDay = 0; - if ([_day length] > 1) + dayLength = [_day length]; + if (dayLength > 1) { [[_day uppercaseString] getCharacters: chars - range: NSMakeRange ([day length] - 3, 2)]; + range: NSMakeRange (dayLength - 2, 2)]; switch (chars[0]) {