diff options
| author | FearlessTobi <thm.frey@gmail.com> | 2022-07-31 04:46:26 +0200 |
|---|---|---|
| committer | FearlessTobi <thm.frey@gmail.com> | 2022-09-09 14:30:22 +0200 |
| commit | 48d6226115f849c465202692b6988e1efb7d2410 (patch) | |
| tree | 6d6b518611b377b6bd79e3156eb16f60f5045698 /src/dedicated_room | |
| parent | c48259ca815b6b47b08dce5c1c1f7860ab99fa6b (diff) | |
ldn: Initial implementation
Diffstat (limited to 'src/dedicated_room')
| -rw-r--r-- | src/dedicated_room/yuzu_room.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dedicated_room/yuzu_room.cpp b/src/dedicated_room/yuzu_room.cpp index 7b6deba417..8d8ac1ed74 100644 --- a/src/dedicated_room/yuzu_room.cpp +++ b/src/dedicated_room/yuzu_room.cpp @@ -76,7 +76,8 @@ static constexpr char BanListMagic[] = "YuzuRoom-BanList-1"; static constexpr char token_delimiter{':'}; static void PadToken(std::string& token) { - while (token.size() % 4 != 0) { + const auto remainder = token.size() % 3; + for (size_t i = 0; i < (3 - remainder); i++) { token.push_back('='); } } |
