diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2011-10-19 17:02:00 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2011-10-19 17:02:00 +0100 |
commit | 72a80acf9dd2eb8992ae1e045bed4efdc234965e (patch) | |
tree | b1e245bd6712952ddc4ca3ee54e3437e71518cba | |
parent | 0065d7d5f9440b725aa969a1ef8edcfe02c184f7 (diff) | |
download | tbdiff-72a80acf9dd2eb8992ae1e045bed4efdc234965e.tar.gz |
Hopefully fixes a crash on 64-bit
-rw-r--r-- | libtbd_apply.c | 4 |
1 files 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); } |