fix mistype => should be while (shx.is_good() && pos <= file_length - 4)

This commit is contained in:
artemp 2015-11-23 10:32:14 +00:00
parent aee0149a1a
commit ec074752cc

View file

@ -162,7 +162,7 @@ int main (int argc,char** argv)
mapnik::quad_tree<int> tree(extent, depth, ratio);
int count = 0;
while (shx.is_good() && pos <= file_length + 4)
while (shx.is_good() && pos <= file_length - 4)
{
int offset = shx.read_xdr_integer();
int content_length = shx.read_xdr_integer();