ref: 899c43e87e495c82b0897b0970d26b9bfc583c7f
parent: ea99345bda4e411479705f5bb9c0ba7f13bfe52d
author: Ori Bernstein <[email protected]>
date: Mon Jul 8 04:39:36 EDT 2019
Hash all index contents.
--- a/pack.c
+++ b/pack.c
@@ -1004,7 +1004,7 @@
qsort(objects, nobj, sizeof(Object*), objcmp);
if((f = Bopen(idx, OWRITE)) == nil)
return -1;
- if(Bwrite(f, "\xfftOc\x00\x00\x00\x02", 8) != 8)
+ if(hwrite(f, "\xfftOc\x00\x00\x00\x02", 8, &st) != 8)
goto error;
/* fanout table */
c = 0;