From c0c04e1c25825a2bf380caabac606c87fc15957e Mon Sep 17 00:00:00 2001 From: wolfgang Date: Mon, 28 Jan 2008 18:58:25 +0000 Subject: [PATCH] git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1345 d1b88da0-ebda-0310-925b-ed51d893ca5b --- SOPE/NGCards/iCalRecurrenceRule.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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]) { -- 2.39.5