aboutsummaryrefslogtreecommitdiff
path: root/games/assaultcube/files/patch-source_src_master.cpp
diff options
context:
space:
mode:
authorDanilo Egea Gondolfo <danilo@FreeBSD.org>2013-10-12 17:55:50 +0000
committerDanilo Egea Gondolfo <danilo@FreeBSD.org>2013-10-12 17:55:50 +0000
commitc3811d904285e922fd1f45d18615e7cbad48d0c5 (patch)
treea6f2810a920fa859e7a25963c41cc41bf0309f3f /games/assaultcube/files/patch-source_src_master.cpp
parentfdc9004a4c296c33ee20a5aa893ed607bfc37896 (diff)
downloadports-c3811d904285e922fd1f45d18615e7cbad48d0c5.tar.gz
ports-c3811d904285e922fd1f45d18615e7cbad48d0c5.zip
Notes
Diffstat (limited to 'games/assaultcube/files/patch-source_src_master.cpp')
-rw-r--r--games/assaultcube/files/patch-source_src_master.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/games/assaultcube/files/patch-source_src_master.cpp b/games/assaultcube/files/patch-source_src_master.cpp
new file mode 100644
index 000000000000..4e646df7a132
--- /dev/null
+++ b/games/assaultcube/files/patch-source_src_master.cpp
@@ -0,0 +1,11 @@
+--- 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);