[En-Nut-Discussion] Strange behavior with files using file attributes '+' or 'a'

Harald Kipp harald.kipp at egnite.de
Mon Mar 31 17:04:59 CEST 2008


Neither this

> 
>             if(((fcb -> f_pos)-rc) < (fcb -> f_dirent.dent_fsize)){

nor that one

>             if((fcb -> f_pos) > (fcb -> f_dirent.dent_fsize)){
>               fcb->f_dirent.dent_fsize += rc;
>             }

looks correct to me. IMHO this one

   if(fcb->f_dirent.dent_fsize < fcb->f_pos) {
     fcb->f_dirent.dent_fsize = fcb->f_pos;
   }

should do it right. Right?

Harald



More information about the En-Nut-Discussion mailing list