Commit Diff


commit - 59a9682013a2f4c5ee679ba910fe234ea61f6808
commit + 005ee04b9f6484c1831c655fcfb246424919fca1
blob - 1afa2a460c2affb7e5e7783ae16daba557724542
blob + 43455aba526434c18fdb7d455d5ab643ab114898
--- src/libventi/file.c
+++ src/libventi/file.c
@@ -1214,7 +1214,7 @@ vtfileflushbefore(VtFile *r, u64int offset)
 	 * has been finished.
 	 */
 	base = e.type&~VtTypeDepthMask;
-	for(i=0; i<depth; i++){
+	for(i=0; i<=depth; i++){
 		doflush = 0;
 		if(i == 0){
 			/* leaf: data or dir block */