Browse Source

core: fix number of bytes read in function dir_file_copy

master
Sébastien Helleu 2 years ago
parent
commit
b585ec09f8
  1. 2
      src/core/wee-dir.c

2
src/core/wee-dir.c

@ -592,7 +592,7 @@ dir_file_copy (const char *from, const char *to) @@ -592,7 +592,7 @@ dir_file_copy (const char *from, const char *to)
while (!feof (src))
{
count = fread (buffer, 1, 65535, src);
count = fread (buffer, 1, 65536, src);
if (count <= 0)
goto end;
if (fwrite (buffer, 1, count, dst) <= 0)

Loading…
Cancel
Save