Set the container type in LanguagePack::FromFile to std::string

The code interpreting fileData assumes the string has a valid null terminator,
which is not guaranteed by std::vector, but is guaranteed by std::string.
This commit is contained in:
Silent 2023-02-13 18:48:36 +01:00
parent d3ea4bfbc8
commit 8216d00522
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ public:
Guard::ArgumentNotNull(path);
// Load file directly into memory
std::vector<utf8> fileData;
u8string fileData;
try
{