diff --git a/huffman/huffman.c b/huffman/huffman.c index 00bd631..4293ca9 100644 --- a/huffman/huffman.c +++ b/huffman/huffman.c @@ -8,6 +8,7 @@ #include #include +// designed for 512, but other BUFSIZEs work aswell. Don't make it too big or you will get a SEGVAULT #define BUFSIZE 512 // a single node, only having information for a single byte. @@ -144,7 +145,7 @@ int main(int argc, char *argv[]) { // dump start of file if debugging // FIXME add conditions if the part to print is smaller than 512B if(debug){ - printf("[DEBUG]First 512 bytes are:\n"); + printf("[DEBUG]First %d bytes are:\n", BUFSIZE); fread(buf, 1, BUFSIZE, fptrR); for(int i=0;i