]> git.llucax.com Git - z.facultad/75.06/jacu.git/blobdiff - src/statichuff/statichuff.c
Uso vfeof agregado por luca
[z.facultad/75.06/jacu.git] / src / statichuff / statichuff.c
index 0a3fa0139de82a46e329464bae0c4e4c8059b863..79fcdceae8d852c5f080b9e10460356abe35112c 100644 (file)
@@ -300,7 +300,7 @@ int shuff_decode_file(char *inputfile, char *outputfile)
        codetree = shuff_buildtree(inputlist,freqcount);
        currnode = codetree;
        
        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;
                
                /* Leo un buffer de 32 bits */
                if (vfread(&codebuffer,sizeof(unsigned long int),1,fpsource) != 1) continue;