aboutsummaryrefslogtreecommitdiff
path: root/security/heimdal/files/patch-ae
diff options
context:
space:
mode:
Diffstat (limited to 'security/heimdal/files/patch-ae')
-rw-r--r--security/heimdal/files/patch-ae29
1 files changed, 29 insertions, 0 deletions
diff --git a/security/heimdal/files/patch-ae b/security/heimdal/files/patch-ae
new file mode 100644
index 000000000000..f4e1d38369c0
--- /dev/null
+++ b/security/heimdal/files/patch-ae
@@ -0,0 +1,29 @@
+--- appl/telnet/telnetd/global.c 1997/05/11 06:29:59 1.12
++++ appl/telnet/telnetd/global.c 2001/07/19 16:00:42 1.13
+@@ -36,7 +36,7 @@
+
+ #include "telnetd.h"
+
+-RCSID("$Id: global.c,v 1.12 1997/05/11 06:29:59 assar Exp $");
++RCSID("$Id: global.c,v 1.13 2001/07/19 16:00:42 assar Exp $");
+
+ /*
+ * Telnet server variable declarations
+@@ -93,7 +93,7 @@
+ output_data (const char *format, ...)
+ {
+ va_list args;
+- size_t remaining, ret;
++ int remaining, ret;
+
+ va_start(args, format);
+ remaining = BUFSIZ - (nfrontp - netobuf);
+@@ -101,7 +101,7 @@
+ remaining,
+ format,
+ args);
+- nfrontp += ret;
++ nfrontp += min(ret, remaining-1);
+ va_end(args);
+ return ret;
+ }