- Timestamp:
- Jun 24, 2010, 5:44:58 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0x/libtransmission/utils.c
r10736 r10838 1395 1395 struct stat st; 1396 1396 off_t bytesLeft; 1397 off_t buflen;1397 const off_t buflen = 1024 * 128; /* 128 KiB buffer */ 1398 1398 1399 1399 /* make sure the old file exists */ … … 1430 1430 in = tr_open_file_for_scanning( oldpath ); 1431 1431 out = tr_open_file_for_writing( newpath ); 1432 buflen = stat( newpath, &st ) ? 4096 : st.st_blksize;1433 1432 buf = tr_valloc( buflen ); 1434 1433 while( bytesLeft > 0 )
Note: See TracChangeset
for help on using the changeset viewer.