From 3ae38bbab13cc4740af55c448557edf1f886b7e8 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Wed, 18 Nov 2020 15:58:00 +0000 Subject: [PATCH] Fix typo pos.second -> pos.size (via @mathisloge) ref #4187 --- plugins/input/csv/csv_index_featureset.cpp | 2 +- plugins/input/geojson/geojson_index_featureset.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/input/csv/csv_index_featureset.cpp b/plugins/input/csv/csv_index_featureset.cpp index 3b1c8a424..c1701e5cf 100644 --- a/plugins/input/csv/csv_index_featureset.cpp +++ b/plugins/input/csv/csv_index_featureset.cpp @@ -122,7 +122,7 @@ mapnik::feature_ptr csv_index_featureset::next() #else std::fseek(file_.get(), pos.off, SEEK_SET); std::vector record; - record.resize(pos.second); + record.resize(pos.size); if (std::fread(record.data(), pos.size, 1, file_.get()) != 1) { return mapnik::feature_ptr(); diff --git a/plugins/input/geojson/geojson_index_featureset.cpp b/plugins/input/geojson/geojson_index_featureset.cpp index 7f915fa18..d3a4933ec 100644 --- a/plugins/input/geojson/geojson_index_featureset.cpp +++ b/plugins/input/geojson/geojson_index_featureset.cpp @@ -93,7 +93,7 @@ mapnik::feature_ptr geojson_index_featureset::next() #else std::fseek(file_.get(), pos.off, SEEK_SET); std::vector record; - record.resize(pos.second); + record.resize(pos.size); auto count = std::fread(record.data(), pos.size, 1, file_.get()); auto const* start = record.data(); auto const* end = (count == 1) ? start + record.size() : start;