ObjFW  Diff

Differences From Artifact [788fd6f59d]:

To Artifact [3028812e1c]:


828
829
830
831
832
833
834
835
836

837
838
839
840
841
842
843

		file = [[OFFile alloc] initWithPath: path
					       mode: @"rb"];

		@try {
			tmp = [self allocMemoryWithSize: (size_t)st.st_size];

			[file readExactlyNBytes: (size_t)st.st_size
				     intoBuffer: tmp];

		} @finally {
			[file release];
		}
	} @catch (id e) {
		[self release];
		@throw e;
	}







<
|
>







828
829
830
831
832
833
834

835
836
837
838
839
840
841
842
843

		file = [[OFFile alloc] initWithPath: path
					       mode: @"rb"];

		@try {
			tmp = [self allocMemoryWithSize: (size_t)st.st_size];


			[file readIntoBuffer: tmp
				 exactLength: (size_t)st.st_size];
		} @finally {
			[file release];
		}
	} @catch (id e) {
		[self release];
		@throw e;
	}