From 5d4cad9c02e9d4f31477fed0e3b20b35c83936f8 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Wed, 20 Jun 2012 11:20:57 -0400 Subject: ABI change: fix use of off_t, size_t, and integer types Significantly improve the code's use of off_t for file offsets, size_t for memory sizes, and integer types in cases where there has to be compatibility with external interfaces. Rework sections of the code that would have prevented qpdf from working on files larger than 2 (or maybe 4) GB in size. --- zlib-flate/zlib-flate.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zlib-flate') diff --git a/zlib-flate/zlib-flate.cc b/zlib-flate/zlib-flate.cc index 67cd925d..9d4a62e2 100644 --- a/zlib-flate/zlib-flate.cc +++ b/zlib-flate/zlib-flate.cc @@ -70,7 +70,7 @@ int main(int argc, char* argv[]) bool done = false; while (! done) { - int len = fread(buf, 1, sizeof(buf), stdin); + size_t len = fread(buf, 1, sizeof(buf), stdin); if (len <= 0) { done = true; -- cgit v1.2.3-54-g00ecf