fix problem with assert for fgets (for EOF fgets returns NULL)

This commit is contained in:
Pete Hildebrandt 2011-01-23 20:23:13 +01:00
parent 3dd1899d17
commit 9a9c87057f
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ void process(int out ,char *request, struct usb_device *dev, int devnum)
send(out,mrk,remlen,0);
memset(xbuffer,0,BSIZE);
retvalue = fgets(xbuffer,BSIZE-1,in);
assert(retvalue!=NULL);
//assert(retvalue!=NULL);
remlen=length=ftell(in)-lastpos;
lastpos=ftell(in);
}