@@ -33,13 +33,12 @@ OFSHA1Hash *sha1 = [OFSHA1Hash new]; OFFile *f = [OFFile newWithPath: "testfile" andMode: "rb"]; while (![f atEndOfFile]) { - len = [f readIntoBuffer: buf - withSize: 1 - andNItems: 64]; + len = [f readNBytes: 64 + intoBuffer: buf]; [md5 updateWithBuffer: buf ofSize: len]; [sha1 updateWithBuffer: buf ofSize: len]; }