ObjFW  Diff

Differences From Artifact [5a1ab363d9]:

To Artifact [df8ed55ecd]:


682
683
684
685
686
687
688
689

690
691
692
693
694
695
696
697
682
683
684
685
686
687
688

689

690
691
692
693
694
695
696







-
+
-







	int len;

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

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

	@try {
		return [self writeNBytes: len
			      fromBuffer: t];
	} @finally {
		free(t);
	}