mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Keep tile-join from generating a tileset name longer than 255 chars
This commit is contained in:
+4
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user