Monotone-Parent: 8e38cd34311edbce1f6a5d645e0e49644ad94473

Monotone-Revision: e2e39181c8973d9b23526f1110107e46fd7318e5

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-10-19T14:13:04
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-10-19 14:13:04 +00:00
parent 1bd2798ae8
commit f5723f7e3d
2 changed files with 15 additions and 2 deletions
+9 -2
View File
@@ -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