ObjFW  Diff

Differences From Artifact [f7e8bc7e28]:

To Artifact [22b7dac443]:


629
630
631
632
633
634
635
636
637
638
639

640
641
642
643
644
645
646
629
630
631
632
633
634
635




636
637
638
639
640
641
642
643







-
-
-
-
+







		}
	} else if ([type isEqual: of_file_type_regular]) {
		size_t pageSize = [OFSystemInfo pageSize];
		OFStream *sourceStream = nil;
		OFStream *destinationStream = nil;
		char *buffer;

		if ((buffer = malloc(pageSize)) == NULL)
			@throw [OFOutOfMemoryException
			    exceptionWithRequestedSize: pageSize];

		buffer = of_malloc(1, pageSize);
		@try {
			sourceStream = [[OFURLHandler handlerForURL: source]
			    openItemAtURL: source
				     mode: @"r"];
			destinationStream = [[OFURLHandler handlerForURL:
			    destination] openItemAtURL: destination
						  mode: @"w"];