fseek() with SEEK_SET is broken on large file capable 32-bit systems, so
authorDan Fandrich <dan@coneharvesters.com>
Mon, 7 Mar 2005 18:59:04 +0000 (18:59 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Mon, 7 Mar 2005 18:59:04 +0000 (18:59 +0000)
commitdc5979562921779dbceb377ea9768bacf04563da
tree549b6378f2f918facec08350bded19f40ff8a47a
parentcb9bb31f7da82d8ec4a1b6c8d3d1e2ea82d1f996
fseek() with SEEK_SET is broken on large file capable 32-bit systems, so
revert to the SEEK_END method of repositioning the stream after a ftruncate()
and only use SEEK_SET if ftruncate() isn't available.
src/main.c