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 | f5e635addaef59159bf6bc529b17954eda3684a1 (patch) | |
tree | 6d6b518611b377b6bd79e3156eb16f60f5045698 /src/dedicated_room | |
parent | Merge pull request #8819 from liamwhite/cash-money (diff) | |
download | yuzu-f5e635addaef59159bf6bc529b17954eda3684a1.tar yuzu-f5e635addaef59159bf6bc529b17954eda3684a1.tar.gz yuzu-f5e635addaef59159bf6bc529b17954eda3684a1.tar.bz2 yuzu-f5e635addaef59159bf6bc529b17954eda3684a1.tar.lz yuzu-f5e635addaef59159bf6bc529b17954eda3684a1.tar.xz yuzu-f5e635addaef59159bf6bc529b17954eda3684a1.tar.zst yuzu-f5e635addaef59159bf6bc529b17954eda3684a1.zip |
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"; 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('='); } } |