freebsd-ports/games/assaultcube/files/patch-source_src_master.cpp
Danilo Egea Gondolfo c3811d9042 - Add forgotten patches
Reported by:	Sender Ghost <lightside@gmx.com> (maintainer)
Approved by:	wg/culot (mentors, implicit)
2013-10-12 17:55:50 +00:00

11 lines
465 B
C++

--- source/src/master.cpp.orig 2013-10-09 12:27:37.000000000 +0400
+++ source/src/master.cpp 2013-10-11 02:26:24.000000000 +0400
@@ -510,7 +510,7 @@
authreq &a = c.authreqs.add();
a.reqtime = servtime;
a.id = id;
- uint seed[3] = { starttime, servtime, randomMT() };
+ uint seed[3] = { (uint)starttime, servtime, randomMT() };
static vector<char> buf;
buf.setsize(0);
a.answer = genchallenge(u->pubkey, seed, sizeof(seed), buf);