From f3fc0719a4ec62ae33d20f694ee563400b91eb3d Mon Sep 17 00:00:00 2001 From: Alan Kennedy Date: Sun, 20 Jun 2004 22:57:42 +0000 Subject: [PATCH] Uso vfeof agregado por luca --- src/statichuff/statichuff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.43.0