Argh, fix issue with double-pointers vs. multidimensional arrays.
authorSteinar H. Gunderson <sesse@debian.org>
Sat, 3 Jan 2009 11:28:02 +0000 (12:28 +0100)
committerSteinar H. Gunderson <sesse@debian.org>
Sat, 3 Jan 2009 11:28:02 +0000 (12:28 +0100)
dehuff.c

index 8fd4c20..b44218d 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);
                }
 
-               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);