X-Git-Url: https://git.llucax.com/z.facultad/75.06/jacu.git/blobdiff_plain/86a61940d1d5da3a699fbf12c87e91a7228deda2..f3fc0719a4ec62ae33d20f694ee563400b91eb3d:/src/statichuff/statichuff.c?ds=sidebyside diff --git a/src/statichuff/statichuff.c b/src/statichuff/statichuff.c index 0a3fa01..79fcdce 100644 --- a/src/statichuff/statichuff.c +++ b/src/statichuff/statichuff.c @@ -300,7 +300,7 @@ int shuff_decode_file(char *inputfile, char *outputfile) codetree = shuff_buildtree(inputlist,freqcount); currnode = codetree; - while (!feof(fpsource->fp) && (bytesleft > 0)) { + while (!vfeof(fpsource) && (bytesleft > 0)) { /* Leo un buffer de 32 bits */ if (vfread(&codebuffer,sizeof(unsigned long int),1,fpsource) != 1) continue;