summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/core/web_engine_library_info.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/web_engine_library_info.cpp b/src/core/web_engine_library_info.cpp
index e64415faa..ef9d4c03f 100644
--- a/src/core/web_engine_library_info.cpp
+++ b/src/core/web_engine_library_info.cpp
@@ -429,7 +429,7 @@ std::string WebEngineLibraryInfo::getApplicationLocale()
bool WebEngineLibraryInfo::isRemoteDrivePath(const QString &path)
{
WCHAR wDriveLetter[4] = { 0 };
- swprintf(wDriveLetter, L"%S", path.mid(0, 3).toStdString().c_str());
+ swprintf(wDriveLetter, 4, L"%S", path.mid(0, 3).toStdString().c_str());
return GetDriveType(wDriveLetter) == DRIVE_REMOTE;
}