summaryrefslogtreecommitdiffstats
path: root/src/dedicated_room
diff options
context:
space:
mode:
authorFearlessTobi <thm.frey@gmail.com>2022-07-31 04:46:26 +0200
committerFearlessTobi <thm.frey@gmail.com>2022-09-09 14:30:22 +0200
commitf5e635addaef59159bf6bc529b17954eda3684a1 (patch)
tree6d6b518611b377b6bd79e3156eb16f60f5045698 /src/dedicated_room
parentMerge pull request #8819 from liamwhite/cash-money (diff)
downloadyuzu-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.cpp3
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('=');
}
}