diff options
Diffstat (limited to 'Build/source/texk/kpathsea/xrealloc.c')
-rw-r--r-- | Build/source/texk/kpathsea/xrealloc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/kpathsea/xrealloc.c b/Build/source/texk/kpathsea/xrealloc.c index 516ad4463ec..051b4834dbd 100644 --- a/Build/source/texk/kpathsea/xrealloc.c +++ b/Build/source/texk/kpathsea/xrealloc.c @@ -18,10 +18,10 @@ #include <kpathsea/config.h> -extern void *xmalloc (unsigned); +extern void *xmalloc (size_t); void * -xrealloc (void *old_ptr, unsigned size) +xrealloc (void *old_ptr, size_t size) { void *new_mem; @@ -35,8 +35,8 @@ xrealloc (void *old_ptr, unsigned size) pointers and unsigned had different sizes. Since the info is of little or no value anyway, just don't print it. */ fprintf(stderr, - "fatal: memory exhausted (realloc of %u bytes).\n", - size); + "fatal: memory exhausted (realloc of %lu bytes).\n", + (unsigned long)size); exit(EXIT_FAILURE); } } |