From b0c9c185f38c6bfc41a1d60e60aac1f7e79429dc Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周日, 01 12月 2019 14:24:31 +0800 Subject: [PATCH] fix mingw --- src/library/base/logger.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/library/base/logger.c b/src/library/base/logger.c index 1e4e662..a6dc5f3 100644 --- a/src/library/base/logger.c +++ b/src/library/base/logger.c @@ -33,7 +33,7 @@ strncpy(logpath, folder, MAX_PATH); strncat(logpath, "/open-license.log", MAX_PATH - strlen(logpath)); #else - int plen = GetTempPath(MAX_PATH, logpath); + const int plen = GetTempPath(MAX_PATH, logpath); if(plen == 0) { fprintf(stderr, "Error getting temporary directory path"); } @@ -41,7 +41,7 @@ #endif } -void _log(char* format, ...) { +void _log(const char* format, ...) { char logpath[MAX_PATH]; va_list args; char * buffer; -- Gitblit v1.9.1