Keep tile-join from generating a tileset name longer than 255 chars

This commit is contained in:
Eric Fischer
2018-08-20 17:45:18 -07:00
parent de40169f16
commit addbd0a854
5 changed files with 79 additions and 2 deletions
+4 -1
View File
@@ -773,7 +773,10 @@ void decode(struct reader *readers, std::map<std::string, layermap_entry> &layer
if (name.size() == 0) {
name = std::string((char *) s);
} else {
name += " + " + std::string((char *) s);
std::string proposed = name + " + " + std::string((char *) s);
if (proposed.size() < 255) {
name = proposed;
}
}
}
}