Argh, fix issue with double-pointers vs. multidimensional arrays.
[fjl] / dehuff.c
index 8fd4c2072fce46cbe792295fc977a3e7f53b2deb..b44218df43432a5780ef393a0419b3fcd63622b1 100644 (file)
--- a/dehuff.c
+++ b/dehuff.c
@@ -32,7 +32,7 @@ void read_huffman_tables(huffman_tables_t* dst, input_func_t* input_func, void*
                        exit(1);
                }
 
                        exit(1);
                }
 
-               struct huffman_table* tbl = dst[table_class][table_dest];
+               struct huffman_table* tbl = &((*dst)[table_class][table_dest]);
                if (len < 16) {
                        fprintf(stderr, "Short read for num_codes\n");
                        exit(1);
                if (len < 16) {
                        fprintf(stderr, "Short read for num_codes\n");
                        exit(1);