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:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user