[liquidwar] Add patch.
Jon Ciesla
limb at fedoraproject.org
Mon Apr 9 15:06:01 UTC 2012
commit a91120a8499752fcd6ad79c5c996d04aaba9a007
Author: Jon Ciesla <limburgher at gmail.com>
Date: Mon Apr 9 10:05:54 2012 -0500
Add patch.
liquidwar-5.6.4-srv-overflow.patch | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/liquidwar-5.6.4-srv-overflow.patch b/liquidwar-5.6.4-srv-overflow.patch
new file mode 100644
index 0000000..cebe89f
--- /dev/null
+++ b/liquidwar-5.6.4-srv-overflow.patch
@@ -0,0 +1,13 @@
+--- src/wwwsrv.c~ 2007-10-17 15:00:50.000000000 -0500
++++ src/wwwsrv.c 2012-04-09 09:49:48.641466938 -0500
+@@ -104,8 +104,8 @@
+ data->port = port;
+ data->busy_players = busy_players;
+ data->max_players = max_players;
+- strncpy (data->password, password, URL_SIZE);
+- strncpy (data->comment, comment, URL_SIZE);
++ strncpy (data->password, password, sizeof(data->password));
++ strncpy (data->comment, comment, sizeof(data->comment));
+ }
+
+ /*------------------------------------------------------------------*/
More information about the scm-commits
mailing list