Ignore:
Timestamp:
04/17/08 23:31:35 (5 years ago)
Author:
DataGhost
Message:
  • Fixed hang when pasting files which are an exact multiple of 65536 (0x10000 or MARKED_BUF_SIZE) or smaller, call to read() returns -1 on EOF, not 0.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/gui_fselect.c

    r324 r385  
    489489                                do { 
    490490                                    ss=read(fsrc, buf, MARKED_BUF_SIZE); 
    491                                     if (ss) sd=write(fdst, buf, ss); 
    492                                 } while (ss && ss==sd); 
     491                                    if (ss>0) sd=write(fdst, buf, ss); 
     492                                } while (ss>0 && ss==sd); 
    493493                                close(fdst); 
    494494                                t.actime = t.modtime = ptr->mtime; 
Note: See TracChangeset for help on using the changeset viewer.