diff --git a/kit/Kit.cpp b/kit/Kit.cpp index 281853b42..76dddab46 100644 --- a/kit/Kit.cpp +++ b/kit/Kit.cpp @@ -29,8 +29,10 @@ #include #include #include +#include #include #include +#include #include #include @@ -1102,8 +1104,7 @@ public: LOG_TRC("Sending back painted tiles for " << tileMsg << " of size " << output.size() << " bytes) for: " << tileMsg); - std::shared_ptr> response = std::make_shared>(); - response->resize(tileMsg.size() + output.size()); + std::shared_ptr> response = std::make_shared>(tileMsg.size() + output.size()); std::copy(tileMsg.begin(), tileMsg.end(), response->begin()); std::copy(output.begin(), output.end(), response->begin() + tileMsg.size());