@@ -179,11 +179,11 @@ exceptionWithClass: isa]; s->cStringLength += bytes - 1; s->cString = [self resizeMemory: s->cString - toSize: s->cStringLength + 1]; + size: s->cStringLength + 1]; memcpy(s->cString + j, buffer, bytes); j += bytes; } @@ -228,11 +228,11 @@ @throw [OFInvalidEncodingException exceptionWithClass: isa]; s->cStringLength += characterBytes - 1; s->cString = [self resizeMemory: s->cString - toSize: s->cStringLength + 1]; + size: s->cStringLength + 1]; memcpy(s->cString + j, buffer, characterBytes); j += characterBytes; } @@ -340,11 +340,11 @@ s->cString[j] = '\0'; @try { s->cString = [self resizeMemory: s->cString - toSize: s->cStringLength + 1]; + size: s->cStringLength + 1]; } @catch (OFOutOfMemoryException *e) { /* We don't care, as we only tried to make it smaller */ } } @catch (id e) { [self release]; @@ -448,11 +448,11 @@ s->cString[j] = '\0'; @try { s->cString = [self resizeMemory: s->cString - toSize: s->cStringLength + 1]; + size: s->cStringLength + 1]; } @catch (OFOutOfMemoryException *e) { /* We don't care, as we only tried to make it smaller */ } } @catch (id e) { [self release]; @@ -1092,12 +1092,12 @@ { OFObject *object = [[[OFObject alloc] init] autorelease]; of_unichar_t *ret; size_t i, j; - ret = [object allocMemoryWithItemSize: sizeof(of_unichar_t) - count: s->length + 1]; + ret = [object allocMemoryWithSize: sizeof(of_unichar_t) + count: s->length + 1]; i = 0; j = 0; while (i < s->cStringLength) {