ObjFW  Diff

Differences From Artifact [751ced34bb]:

To Artifact [e762638600]:


235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
	int len;

	if (fmt == nil)
		@throw [OFInvalidArgumentException newWithClass: isa
						       selector: _cmd];

	if ((len = of_vasprintf(&t, [fmt cString], args)) == -1)
		@throw [OFInvalidArgumentException newWithClass: isa
						       selector: _cmd];

	@try {
		[self appendCString: t
			 withLength: len];
	} @finally {
		free(t);
	}







|
<







235
236
237
238
239
240
241
242

243
244
245
246
247
248
249
	int len;

	if (fmt == nil)
		@throw [OFInvalidArgumentException newWithClass: isa
						       selector: _cmd];

	if ((len = of_vasprintf(&t, [fmt cString], args)) == -1)
		@throw [OFInvalidFormatException newWithClass: isa];


	@try {
		[self appendCString: t
			 withLength: len];
	} @finally {
		free(t);
	}