diff options
| author | johannes <johannes.herman@gmail.com> | 2024-02-06 12:35:35 +0100 |
|---|---|---|
| committer | johannes <johannes.herman@gmail.com> | 2024-02-06 12:35:35 +0100 |
| commit | 808883b430e869413046b87a12095068677fe383 (patch) | |
| tree | dd53c0c2ce3c337a4e5946fe39a836681382c24c /src/huffman.c | |
| parent | dac46e69f6a7bfed290c7a1cf61b0fc932976d95 (diff) | |
reformat
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; |
