@@ -534,13 +534,12 @@ attribute->_namespace]) == nil) @throw [OFUnboundNamespaceException exceptionWithNamespace: [attribute namespace] element: self]; - length += attributeNameLength + - (attributePrefix != nil ? - attributePrefix.UTF8StringLength + 1 : 0) + + length += attributeNameLength + (attributePrefix != nil + ? attributePrefix.UTF8StringLength + 1 : 0) + tmp.UTF8StringLength + 4; @try { cString = [self resizeMemory: cString size: length];