diff options
| author | 2022-07-31 04:46:26 +0200 | |
|---|---|---|
| committer | 2022-09-09 14:30:22 +0200 | |
| commit | f5e635addaef59159bf6bc529b17954eda3684a1 (patch) | |
| tree | 6d6b518611b377b6bd79e3156eb16f60f5045698 /src/dedicated_room | |
| parent | Merge pull request #8819 from liamwhite/cash-money (diff) | |
| download | yuzu-f5e635addaef59159bf6bc529b17954eda3684a1.tar.gz yuzu-f5e635addaef59159bf6bc529b17954eda3684a1.tar.xz yuzu-f5e635addaef59159bf6bc529b17954eda3684a1.zip | |
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 7b6deba41..8d8ac1ed7 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"; | |||
| 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 | while (token.size() % 4 != 0) { | 79 | const auto remainder = token.size() % 3; |
| 80 | for (size_t i = 0; i < (3 - remainder); i++) { | ||
| 80 | token.push_back('='); | 81 | token.push_back('='); |
| 81 | } | 82 | } |
| 82 | } | 83 | } |