From f8bdc1e61241fe103e5412bdbdf692364b497d14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guilloux?= Date: Wed, 23 Apr 2025 17:30:51 +0200 Subject: [PATCH] Fix f5ffd47: Don't skip separator while reading a record (#14083) --- src/strings.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/strings.cpp b/src/strings.cpp index 2470962826..87c2b3e76a 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -1006,7 +1006,8 @@ static void DecodeEncodedString(StringConsumer &consumer, bool game_script, Stri } while (consumer.AnyBytesLeft()) { - StringConsumer record(consumer.ReadUntilUtf8(SCC_RECORD_SEPARATOR, StringConsumer::SKIP_ONE_SEPARATOR)); + consumer.SkipUtf8If(SCC_RECORD_SEPARATOR); + StringConsumer record(consumer.ReadUntilUtf8(SCC_RECORD_SEPARATOR, StringConsumer::KEEP_SEPARATOR)); if (!record.AnyBytesLeft()) { /* This is an empty parameter. */