From: DeaDDooMER Date: Mon, 1 Feb 2021 23:53:43 +0000 (+0300) Subject: files: disable file read check X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=990d4b2deb2086568c0faf5fa77e45366a892298;p=flatwaifu.git files: disable file read check --- diff --git a/src/my.c b/src/my.c index ad47b24..b3eb964 100644 --- a/src/my.c +++ b/src/my.c @@ -80,9 +80,13 @@ size_t myfreadc (void *ptr, size_t size, size_t n, FILE *f) { } void myfread (void *ptr, size_t size, size_t n, FILE *f) { +#if 1 + myfreadc(ptr, size, n, f); +#else if (myfreadc(ptr, size, n, f) != n) { - ERR_fatal("File reading error\n"); + ERR_fatal("File reading error (readed %u, required %u)\n", m, n); } +#endif } int8_t myfread8 (FILE *f) {