diff options
| author | 2022-08-28 19:31:16 +0200 | |
|---|---|---|
| committer | 2022-09-02 00:50:32 +0200 | |
| commit | 65718e2876374aecf2ac29856387dab4394ca47f (patch) | |
| tree | 5826079e7f63131021fa11120f17173e6c8e2307 /src/dedicated_room | |
| parent | core/ldn_types: Minor corrections and additions (diff) | |
| download | yuzu-65718e2876374aecf2ac29856387dab4394ca47f.tar.gz yuzu-65718e2876374aecf2ac29856387dab4394ca47f.tar.xz yuzu-65718e2876374aecf2ac29856387dab4394ca47f.zip | |
Address review comments
Diffstat (limited to 'src/dedicated_room')
| -rw-r--r-- | src/dedicated_room/yuzu_room.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/dedicated_room/yuzu_room.cpp b/src/dedicated_room/yuzu_room.cpp index 173a53317..7b6deba41 100644 --- a/src/dedicated_room/yuzu_room.cpp +++ b/src/dedicated_room/yuzu_room.cpp | |||
| @@ -76,12 +76,7 @@ static constexpr char BanListMagic[] = "YuzuRoom-BanList-1"; | |||
| 76 | static constexpr char token_delimiter{':'}; | 76 | static constexpr char token_delimiter{':'}; |
| 77 | 77 | ||
| 78 | static void PadToken(std::string& token) { | 78 | static void PadToken(std::string& token) { |
| 79 | const auto remainder = token.size() % 3; | 79 | while (token.size() % 4 != 0) { |
| 80 | if (remainder == 0) { | ||
| 81 | return; | ||
| 82 | } | ||
| 83 | |||
| 84 | for (size_t i = 0; i < (3 - remainder); i++) { | ||
| 85 | token.push_back('='); | 80 | token.push_back('='); |
| 86 | } | 81 | } |
| 87 | } | 82 | } |