From b585ec09f89f7363652ed12d80148f79a48b713d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 3 Jul 2021 16:50:30 +0200 Subject: [PATCH] core: fix number of bytes read in function dir_file_copy --- src/core/wee-dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/wee-dir.c b/src/core/wee-dir.c index bb5ac16f6..3bf642b2a 100644 --- a/src/core/wee-dir.c +++ b/src/core/wee-dir.c @@ -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)