From 0a61877702965dc375b3ad2b2d1cf0315703c22e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 28 Oct 2008 20:39:09 +0100 Subject: input_stream: convert offset and size to the off_t data type size_t and long aren't 64 bit safe (i.e. files larger than 2 GB on a 32 bit OS). Use off_t instead, which is a 64 bit integer if compiled with large file support. --- src/input_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input_file.c') diff --git a/src/input_file.c b/src/input_file.c index 8ffe11395..dfb9a815d 100644 --- a/src/input_file.c +++ b/src/input_file.c @@ -52,7 +52,7 @@ input_file_open(struct input_stream *is, const char *filename) } static bool -input_file_seek(struct input_stream *is, long offset, int whence) +input_file_seek(struct input_stream *is, off_t offset, int whence) { if (fseek((FILE *) is->data, offset, whence) == 0) { is->offset = ftell((FILE *) is->data); -- cgit v1.2.3