From 0bb7c63845ae1983968ebc87db2a38e38d5a4cec Mon Sep 17 00:00:00 2001 From: Gabriele Contini <contini.mailing@gmail.com> Date: 周日, 01 12月 2019 00:02:51 +0800 Subject: [PATCH] centos --- src/library/base/logger.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/library/base/logger.c b/src/library/base/logger.c index 089fc85..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"); } -- Gitblit v1.9.1