From cbddbb598f8210ca9fab32be5fdfa4b0ac12a75f Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Tue, 15 May 2012 16:43:25 +0200 Subject: [PATCH] Limit length of timestamp to 15 characters --- Server/DataStructures/QueryObjectsStorage.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Server/DataStructures/QueryObjectsStorage.cpp b/Server/DataStructures/QueryObjectsStorage.cpp index c2a5a413e..6e47ad8af 100644 --- a/Server/DataStructures/QueryObjectsStorage.cpp +++ b/Server/DataStructures/QueryObjectsStorage.cpp @@ -43,6 +43,8 @@ QueryObjectsStorage::QueryObjectsStorage(std::string hsgrPath, std::string ramIn } if(!timestamp.length()) timestamp = "n/a"; + if(15 < timestamp.length()) + timestamp.resize(15); INFO("Loading auxiliary information"); //Init nearest neighbor data structure