From fc93f2eb78120210ca10f4effb550140531bc721 Mon Sep 17 00:00:00 2001 From: dzmat Date: Fri, 21 Sep 2018 16:26:17 +0700 Subject: [PATCH] Replace magic number with system define --- src/base/utils/misc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/utils/misc.cpp b/src/base/utils/misc.cpp index 74c7aefc5..67ec2ec89 100644 --- a/src/base/utils/misc.cpp +++ b/src/base/utils/misc.cpp @@ -581,7 +581,7 @@ QString Utils::Misc::libtorrentVersionString() QString Utils::Misc::windowsSystemPath() { static const QString path = []() -> QString { - WCHAR systemPath[64] = {0}; + WCHAR systemPath[MAX_PATH] = {0}; GetSystemDirectoryW(systemPath, sizeof(systemPath) / sizeof(WCHAR)); return QString::fromWCharArray(systemPath); }();