1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: fix number of bytes read in function dir_file_copy

This commit is contained in:
Sébastien Helleu
2021-07-03 16:50:30 +02:00
parent 5253478279
commit b585ec09f8
+1 -1
View File
@@ -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)