Hi Jakub,

-extern size_t __fread_chk (void *__restrict __ptr, size_t __ptrlen, size_t
__size, size_t __n, FILE *__restrict __stream) __asm__ ("" "__fread_chk")
__attribute__ ((__warn_unused_result__));

+extern size_t __malloc (void *__restrict __ptr, size_t __ptrlen, size_t
__size, size_t __n, FILE *__restrict __stream) __asm__ ("") __attribute__
((__warn_unused_result__));

The __asm__ ("") on both decls is very weird.  The original had
"" "__fread_chk" aka "__fread_chk" instead.

What does that do ? I could not find a reference to it in the documentation.

But malloc really has also different arguments...

True - thinking about it afterwards it occurred to me that renaming the function to just "fread" would be a lot better ...

Cheers
  Nick

Reply via email to