Limit length of timestamp to 15 characters

This commit is contained in:
DennisOSRM 2012-05-15 16:43:25 +02:00
parent bb5b6fef26
commit cbddbb598f

View File

@ -43,6 +43,8 @@ QueryObjectsStorage::QueryObjectsStorage(std::string hsgrPath, std::string ramIn
} }
if(!timestamp.length()) if(!timestamp.length())
timestamp = "n/a"; timestamp = "n/a";
if(15 < timestamp.length())
timestamp.resize(15);
INFO("Loading auxiliary information"); INFO("Loading auxiliary information");
//Init nearest neighbor data structure //Init nearest neighbor data structure