summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/nvflinger/parcel.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/nvflinger/parcel.h b/src/core/hle/service/nvflinger/parcel.h
index b41c1732e..aa36e6479 100644
--- a/src/core/hle/service/nvflinger/parcel.h
+++ b/src/core/hle/service/nvflinger/parcel.h
@@ -89,7 +89,8 @@ public:
[[maybe_unused]] const u32 unknown = Read<u32>();
const u32 length = Read<u32>();
- std::u16string token{};
+ std::u16string token;
+ token.reserve(length + 1);
for (u32 ch = 0; ch < length + 1; ++ch) {
token.push_back(ReadUnaligned<u16>());