@@ -164,11 +164,11 @@ @throw [OFInvalidEncodingException newWithClass: c]; } @try { - string = [self getMemWithSize: length + 1]; + string = [self allocWithSize: length + 1]; } @catch (OFException *e) { [self free]; @throw e; } memcpy(string, str, length + 1); @@ -267,11 +267,11 @@ @throw [OFInvalidEncodingException newWithClass: isa]; } length = len; - string = [self getMemWithSize: length + 1]; + string = [self allocWithSize: length + 1]; memcpy(string, str, length + 1); return self; }