diff options
Diffstat (limited to 'src/huffman.c')
| -rw-r--r-- | src/huffman.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/huffman.c b/src/huffman.c index b751f77..d37ae98 100644 --- a/src/huffman.c +++ b/src/huffman.c @@ -1,4 +1,4 @@ -/* huffman compresion based on teeworlds/ddnet huffman */ +/* huffman compresion based on teeworlds/ddnet huffman */ /*{ https://github.com/teeworlds/teeworlds/blob/master/src/engine/shared/huffman.cpp } */ #include "../inc/huffman.h" @@ -225,7 +225,7 @@ int decompresshuff(const char *inputbuff, int inputsize, char *outputbuff, int o if (node->symbol == HUFF_EOF_SYMBOL) return outputlen; - + if (outputlen == outputsize) return -1; |
