summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5ffa796)
raw | patch | inline | side by side (parent: 5ffa796)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 1 Feb 2021 23:53:43 +0000 (02:53 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 1 Feb 2021 23:53:43 +0000 (02:53 +0300) |
src/my.c | patch | blob | history |
diff --git a/src/my.c b/src/my.c
index ad47b24de3bda7239d65a8f3445ce4572c6c4b98..b3eb964f476a95f2cfba3e0e71b1995812468999 100644 (file)
--- a/src/my.c
+++ b/src/my.c
}
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) {