mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-06 22:08:51 +00:00
Monotone-Parent: 4db8a709d7b9971ba989f90d459f2e903d8e7d2e
Monotone-Revision: 9b3ca8d1aaa3b15df09c58887d1e37a7aa3e21cc Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-01-08T15:03:02 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2010-01-08 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/NSString+Utilities.m (-_setupCSSEscaping): we
|
||||
must initialize cssEscapingCount before using it. Also, fixed a
|
||||
typo preventing the character buffer from being initialized
|
||||
completely.
|
||||
|
||||
2010-01-07 Francis Lachapelle <flachapelle@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/NSString+Utilities.m (-asCSSIdentifier): replaced
|
||||
|
||||
@@ -42,7 +42,7 @@ static NSMutableCharacterSet *urlStartChars = nil;
|
||||
|
||||
static NSString **cssEscapingStrings = NULL;
|
||||
static unichar *cssEscapingCharacters = NULL;
|
||||
static int cssEscapingCount = 0;
|
||||
static int cssEscapingCount;
|
||||
|
||||
@implementation NSString (SOGoURLExtension)
|
||||
|
||||
@@ -321,9 +321,10 @@ static int cssEscapingCount = 0;
|
||||
|
||||
characters = [NSArray arrayWithObjects: @"_", @".", @"#", @"@", @"*", @":",
|
||||
@",", @" ", nil];
|
||||
cssEscapingCharacters
|
||||
= NSZoneMalloc (NULL, sizeof ((cssEscapingCount + 1) * sizeof (unichar)));
|
||||
cssEscapingCount = [strings count];
|
||||
cssEscapingCharacters = NSZoneMalloc (NULL,
|
||||
(cssEscapingCount + 1)
|
||||
* sizeof (unichar));
|
||||
for (count = 0; count < cssEscapingCount; count++)
|
||||
*(cssEscapingCharacters + count)
|
||||
= [[characters objectAtIndex: count] characterAtIndex: 0];
|
||||
|
||||
Reference in New Issue
Block a user