On Sun, Nov 16, 2014 at 06:19:17PM -0500, Ted Unangst wrote:
> I think using the correct data type is the right thing to do. If it's
> the size of a file, it goes in an off_t. The only thing to watch for
> is passing an off_t to malloc(), where it can wrap and be truncated.

Yes, off_t for memory operations would definitely lead to possible issues.
The variables which I adjust with this patch are exclusively used for
fseek(o) and ftell(o), the others are still of type long.  Thinking about
it, ssize_t might be an option...


Tobias

Reply via email to