diff options
Diffstat (limited to 'src/fs/fs_tree.c')
-rw-r--r-- | src/fs/fs_tree.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fs/fs_tree.c b/src/fs/fs_tree.c index e8b1f469d..1280548d8 100644 --- a/src/fs/fs_tree.c +++ b/src/fs/fs_tree.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #include "platform.h" | 31 | #include "platform.h" |
32 | #include "fs_tree.h" | 32 | #include "fs_tree.h" |
33 | 33 | ||
34 | #define DEBUG_TREE GNUNET_YES | 34 | #define DEBUG_TREE GNUNET_NO |
35 | 35 | ||
36 | /** | 36 | /** |
37 | * Context for an ECRS-based file encoder that computes | 37 | * Context for an ECRS-based file encoder that computes |
@@ -251,6 +251,8 @@ compute_chk_offset (unsigned int height, | |||
251 | corresponds to */ | 251 | corresponds to */ |
252 | for (i=0;i<height;i++) | 252 | for (i=0;i<height;i++) |
253 | bds *= CHK_PER_INODE; | 253 | bds *= CHK_PER_INODE; |
254 | if (height > 0) | ||
255 | offset--; /* round down since for height > 0 offset is at the END of the block */ | ||
254 | ret = offset / bds; | 256 | ret = offset / bds; |
255 | return ret % CHK_PER_INODE; | 257 | return ret % CHK_PER_INODE; |
256 | } | 258 | } |