Increase buffer size to avoid warning (#1550)

This can be up to 54 bytes.

Co-authored-by: Takeshi Nakatani <ggtakec@gmail.com>
This commit is contained in:
Andrew Gaul 2021-02-07 12:26:58 +09:00 committed by GitHub
parent ff9d6a75c7
commit bf33fe7f55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ S3fsLog* S3fsLog::pSingleton = NULL;
S3fsLog::s3fs_log_level S3fsLog::debug_level = S3fsLog::LEVEL_CRIT; S3fsLog::s3fs_log_level S3fsLog::debug_level = S3fsLog::LEVEL_CRIT;
FILE* S3fsLog::logfp = NULL; FILE* S3fsLog::logfp = NULL;
std::string* S3fsLog::plogfile = NULL; std::string* S3fsLog::plogfile = NULL;
char S3fsLog::current_time[32] = ""; char S3fsLog::current_time[64] = "";
//------------------------------------------------------------------- //-------------------------------------------------------------------
// S3fsLog class : class methods // S3fsLog class : class methods

View File

@ -47,7 +47,7 @@ class S3fsLog
static s3fs_log_level debug_level; static s3fs_log_level debug_level;
static FILE* logfp; static FILE* logfp;
static std::string* plogfile; static std::string* plogfile;
static char current_time[32]; static char current_time[64];
protected: protected:
bool LowLoadEnv(); bool LowLoadEnv();