From 855370eca2ce36c109353c4b778b81020082719e Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Thu, 12 Jan 2023 19:27:51 +0100 Subject: [PATCH] Fixed minor gcc warning Signed-off-by: Alexander Borsuk --- base/timer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/timer.cpp b/base/timer.cpp index 0c88ab2b00..9c7bcf8d26 100644 --- a/base/timer.cpp +++ b/base/timer.cpp @@ -101,7 +101,7 @@ std::string TimestampToString(time_t time) return std::string("INVALID_TIME_STAMP"); tm * t = gmtime(&time); - char buf[21] = { 0 }; + char buf[100]; #ifdef OMIM_OS_WINDOWS sprintf_s(buf, ARRAY_SIZE(buf), "%04d-%02d-%02dT%02d:%02d:%02dZ", t->tm_year + 1900, t->tm_mon + 1, t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec);