aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/opendchub/files
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2005-02-13 11:24:54 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2005-02-13 11:24:54 +0000
commit1bca823dd30e7e6389f3b40b31534bc8c7f81061 (patch)
tree340eb2294a215e8707f366be24932ab1783ed00f /net-p2p/opendchub/files
parentd534e1a494d8f7070bf5b1cb6ba9fe331aa740e9 (diff)
downloadports-1bca823dd30e7e6389f3b40b31534bc8c7f81061.tar.gz
ports-1bca823dd30e7e6389f3b40b31534bc8c7f81061.zip
Notes
Diffstat (limited to 'net-p2p/opendchub/files')
-rw-r--r--net-p2p/opendchub/files/patch-buffer_overflow_fix11
-rw-r--r--net-p2p/opendchub/files/patch-telnet_chat_fix11
2 files changed, 22 insertions, 0 deletions
diff --git a/net-p2p/opendchub/files/patch-buffer_overflow_fix b/net-p2p/opendchub/files/patch-buffer_overflow_fix
new file mode 100644
index 000000000000..305b6c5d9558
--- /dev/null
+++ b/net-p2p/opendchub/files/patch-buffer_overflow_fix
@@ -0,0 +1,11 @@
+--- src/commands.c.orig Sun Feb 13 17:16:37 2005
++++ src/commands.c Sun Feb 13 17:17:18 2005
+@@ -2842,7 +2842,7 @@
+ {
+ char move_string[MAX_HOST_LEN+20];
+
+- sprintf(move_string, "$ForceMove %s", buf);
++ snprintf(move_string, MAX_HOST_LEN, "$ForceMove %s", buf);
+
+ send_to_humans(move_string, REGULAR | REGISTERED | OP, user);
+ remove_all(UNKEYED | NON_LOGGED | REGULAR | REGISTERED | OP, 1, 1);
diff --git a/net-p2p/opendchub/files/patch-telnet_chat_fix b/net-p2p/opendchub/files/patch-telnet_chat_fix
new file mode 100644
index 000000000000..79ade0c6ef26
--- /dev/null
+++ b/net-p2p/opendchub/files/patch-telnet_chat_fix
@@ -0,0 +1,11 @@
+--- src/main.c.orig Sun Feb 13 16:54:21 2005
++++ src/main.c Sun Feb 13 16:55:31 2005
+@@ -1056,7 +1056,7 @@
+ /* The chat command, starts with <nick> */
+ else if(*temp == '<')
+ {
+- if((user->type & (SCRIPT | UNKEYED | LINKED | NON_LOGGED)) == 0)
++ if((user->type & (SCRIPT | UNKEYED | LINKED | NON_LOGGED | NON_LOGGED_ADM)) == 0)
+ chat(temp, user);
+ }
+