From bf33fe7f553b1fa6a07951196ff2a63284819f07 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Sun, 7 Feb 2021 12:26:58 +0900 Subject: [PATCH] Increase buffer size to avoid warning (#1550) This can be up to 54 bytes. Co-authored-by: Takeshi Nakatani --- src/s3fs_logger.cpp | 2 +- src/s3fs_logger.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/s3fs_logger.cpp b/src/s3fs_logger.cpp index 0f1292e..04af476 100644 --- a/src/s3fs_logger.cpp +++ b/src/s3fs_logger.cpp @@ -34,7 +34,7 @@ S3fsLog* S3fsLog::pSingleton = NULL; S3fsLog::s3fs_log_level S3fsLog::debug_level = S3fsLog::LEVEL_CRIT; FILE* S3fsLog::logfp = NULL; std::string* S3fsLog::plogfile = NULL; -char S3fsLog::current_time[32] = ""; +char S3fsLog::current_time[64] = ""; //------------------------------------------------------------------- // S3fsLog class : class methods diff --git a/src/s3fs_logger.h b/src/s3fs_logger.h index 75e8e06..a78e571 100644 --- a/src/s3fs_logger.h +++ b/src/s3fs_logger.h @@ -47,7 +47,7 @@ class S3fsLog static s3fs_log_level debug_level; static FILE* logfp; static std::string* plogfile; - static char current_time[32]; + static char current_time[64]; protected: bool LowLoadEnv();