From a7808a20edb65d75f719b6794ce9e8fd20bce429 Mon Sep 17 00:00:00 2001 From: Chris Marsh Date: Fri, 3 Nov 2017 13:26:25 -0700 Subject: [PATCH] Fix some sizes on join request strings. --- .../Assets/Resources/discord-rpc.dll | Bin 62464 -> 62464 bytes src/discord-rpc.cpp | 12 +++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/examples/button-clicker/Assets/Resources/discord-rpc.dll b/examples/button-clicker/Assets/Resources/discord-rpc.dll index 67ef7097acdc62d4ca018c0da77dc32e8de45039..1112dffc2432efacf84dd727ceb312fb0f686c92 100644 GIT binary patch delta 10626 zcmZ`<4}45l_P=*#UQGUsnMfx8h)g0R5+o!PkxB?2Ni;=Ue=ADsPtjmPqL@Syj4{Pt zEd8@p)fR2HVYWnQJ885DqK*F9Dz;0tYgFxKtyZo_p@O z|IWQ{k_w-`!l$pb@c0*6ex1VnPa8|H1?xI9wh4+ly{g?N`tz&&_aa*NkZ$)p&jQ^p z-hawQ#;zI58Ee5KSN)ir@tN#4HTL8zx9*a}nD6j<#xlIJQ`(%$nN!*-G7Wpw-MV_Jo2pk08{6ALYT8Ar)&gxFwCY%Ai04Df!}>2| ztUj5-be)FUHtkxR=w-UhdkSOcY(7_v?mU2>5apdma#_6BIVv(O2u^|N97A`(KB2%ZF8c z3q@_{Fg{D%2#we2Rtig(t{AvJT@v~!=>Ahx<=yq>npr_wHe%-~v&_UKEe?*r@ zXsQEPpycYd=o;2dCk2QhVe$R`p}QM{5A59-EYr1NlA0jn8&y(GS7T-@o4j-?3-Jmw` zc6h38j>i5ie3Z_pvH8|qU9Da*LVKZt2@FOpg9sVa;uOzKqvsnyK8eu0K*tquLZjcIQXPu0Q&Y5?`a(LuI#XC)IU* z<$Dsk>zzKXBAM0s+mKeEjRe_MQ&s`18m~RW9LMCWnhg-`-DTHgi|lGvtmnmoh!p;Y z*dCF{H;Vd*q(M`kxVwNq^%as}F;Y8)gMGsxUAy&9L~zgTgHM^`@)#4Lkyailk|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!%0x95IfE{sTpg{%$XFW1e_p}g&7eM57F>dzDKm}+( i*NHDdHpmI-_-_PHNJl&Ign6JF;PZhC-4nju@BhC6VT(Ed diff --git a/src/discord-rpc.cpp b/src/discord-rpc.cpp index 1d5e6d0..4295bf9 100644 --- a/src/discord-rpc.cpp +++ b/src/discord-rpc.cpp @@ -33,9 +33,15 @@ struct QueuedMessage { }; struct JoinRequest { - char userId[24]; - char username[48]; - char avatar[128]; + // snowflake (64bit int), turned into a ascii decimal string, at most 20 chars +1 null + // terminator = 21 + char userId[22]; + // 32 unicode glyphs is max name size => 4 bytes per glyph in the worst case, +1 for null + // terminator = 129 + char username[130]; + // optional 'a_' + md5 hex digest (32 bytes) + null terminator = 35 + char avatar[36]; + // +1 on each because: it's even / I'm paranoid }; static RpcConnection* Connection{nullptr};