Ticket #2605 (FISH: mc hangs while copy lot of small files)

fixed fish-script 'get'.

    Steps to reproduce:
    create lot of small files
    try to copy these files throught FISH VFS
    mc hangs

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
This commit is contained in:
Ilia Maslakov 2011-09-11 08:36:36 +00:00
parent 3f816dbb5d
commit d6cbefb146

View File

@ -23,7 +23,7 @@ if (open IFILE,$filename) {
}
printf("### 100\n");
seek (IFILE, $pos, 0);
while ($n = read(IFILE,$content,$blocks)!= 0) {
while ($n = read(IFILE,$content,$blksize)!= 0) {
print $content;
}
close IFILE;