fix segfault
[compress.git] / compress.c
index bd343842da026aae79be2baa0e68368931d4f090..f92393a47102e56e227cdfd9b2d6a86a4c9c3f5c 100644 (file)
@@ -94,7 +94,7 @@ void print_occ_table (int *table)
 
 leaf_t **init_forest (int *table)
 {
-    static leaf_t *leafs[NB_BYTES] = {0};
+    static leaf_t *leafs[NB_BYTES + 1] = {0};
     int nb_leafs = 0;
     int i, l;