From 72a80acf9dd2eb8992ae1e045bed4efdc234965e Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Wed, 19 Oct 2011 17:02:00 +0100 Subject: Hopefully fixes a crash on 64-bit --- libtbd_apply.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtbd_apply.c b/libtbd_apply.c index 4a7b473..53ac06b 100644 --- a/libtbd_apply.c +++ b/libtbd_apply.c @@ -59,10 +59,10 @@ tbd_apply_fread_string(FILE *stream) * - or realloc doesn't free old memory (though this will be a memory leak) * - or your allocator does nothing when asked to free non-allocated memory */ -int tbd_apply_fread_block(FILE *stream, void **data, unsigned int *size) +int tbd_apply_fread_block(FILE *stream, void **data, size_t *size) { { - unsigned int _size; + size_t _size; if (fread(&_size, sizeof(_size), 1, stream) != 1) { return TBD_ERROR(TBD_ERROR_UNABLE_TO_READ_STREAM); } -- cgit v1.2.1