]> git.llucax.com Git - z.facultad/75.06/jacu.git/commitdiff
Uso vfeof agregado por luca
authorAlan Kennedy <kennedya@3dgames.com.ar>
Sun, 20 Jun 2004 22:57:42 +0000 (22:57 +0000)
committerAlan Kennedy <kennedya@3dgames.com.ar>
Sun, 20 Jun 2004 22:57:42 +0000 (22:57 +0000)
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;