Monotone-Parent: 8e38cd34311edbce1f6a5d645e0e49644ad94473
Monotone-Revision: e2e39181c8973d9b23526f1110107e46fd7318e5 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-10-19T14:13:04 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
1bd2798ae8
commit
f5723f7e3d
|
@ -1,3 +1,9 @@
|
|||
2010-10-19 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/SOGoContentObject.m (-davContentLength): fixed a
|
||||
potential crash (see http://www.sogo.nu/bugs/view.php?id=915) by
|
||||
evaluating the length differently.
|
||||
|
||||
2010-10-15 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* UI/Scheduler/UIxCalListingActions.m (_fixDates:): restored
|
||||
|
|
|
@ -372,8 +372,15 @@
|
|||
|
||||
- (NSString *) davContentLength
|
||||
{
|
||||
return [NSString stringWithFormat: @"%u",
|
||||
[content lengthOfBytesUsingEncoding: NSUTF8StringEncoding]];
|
||||
NSInteger length;
|
||||
|
||||
/* The following may cause a crash, as stated in
|
||||
http://www.sogo.nu/bugs/view.php?id=915:
|
||||
|
||||
length = [content lengthOfBytesUsingEncoding: NSUTF8StringEncoding]; */
|
||||
length = strlen ([content UTF8String]);
|
||||
|
||||
return [NSString stringWithFormat: @"%u", length];
|
||||
}
|
||||
|
||||
// - (NSString *) davResourceType
|
||||
|
|
Loading…
Reference in New Issue