@@ -203,11 +203,11 @@ selector: _cmd]; } - (size_t)writeString: (OFString*)str { - return [self writeNBytes: [str length] + return [self writeNBytes: [str cStringLength] fromBuffer: [str cString]]; } - (size_t)getCache: (char**)ptr {