ObjFW  Diff

Differences From Artifact [2b9f485fcd]:

To Artifact [07267760cd]:


280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
280
281
282
283
284
285
286






287
288
289
290
291
292
293







-
-
-
-
-
-







	   length: (size_t)len
{
	Class c;
	size_t i, j;

	self = [super init];

	if (len > strlen(str)) {
		c = isa;
		[super dealloc];
		@throw [OFOutOfRangeException newWithClass: c];
	}

	length = len;

	@try {
		string = [self allocMemoryWithSize: length + 1];
	} @catch (OFException *e) {
		/*
		 * We can't use [super dealloc] on OS X here.