diff options
author | Lode <lvandeve@gmail.com> | 2014-11-21 01:52:20 +0100 |
---|---|---|
committer | Lode <lvandeve@gmail.com> | 2014-11-21 01:52:20 +0100 |
commit | fe4e8b3693d489bf4b7d2711893075afd047a607 (patch) | |
tree | 2529f7abee1478a5f7ed442f6723529837e29f5a /example_png_info.cpp | |
parent | 6e1667e71a79dd57bf2bb04edd517a03af51aa90 (diff) |
fix examples
Diffstat (limited to 'example_png_info.cpp')
-rw-r--r-- | example_png_info.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example_png_info.cpp b/example_png_info.cpp index c6df5c1..afd845c 100644 --- a/example_png_info.cpp +++ b/example_png_info.cpp @@ -232,7 +232,7 @@ void displayFilterTypes(const std::vector<unsigned char>& buffer) { const unsigned char* cdata = lodepng_chunk_data_const(chunk); unsigned clength = lodepng_chunk_length(chunk); - if(chunk + clength >= end) { + if(chunk + clength + 12 > end) { std::cout << "invalid chunk length" << std::endl; return; } |