summaryrefslogtreecommitdiff
path: root/misc/fep/patches
diff options
context:
space:
mode:
authorsalo <salo@pkgsrc.org>2003-03-09 04:39:29 +0000
committersalo <salo@pkgsrc.org>2003-03-09 04:39:29 +0000
commit83839d8544c98af80ce68356cd99fd277f6d0d27 (patch)
tree0f3e232bda0fd763f03bab06547f59158945474e /misc/fep/patches
parent89b63f491b08e655a9e5fd75c6c25c064ef4db99 (diff)
downloadpkgsrc-83839d8544c98af80ce68356cd99fd277f6d0d27.tar.gz
Fix: Using ^U when line buffer is full will cause overrun. Bump PKGREVISION.
Patch submitted by Nobuhiro Yasutomi via PR pkg/20599.
Diffstat (limited to 'misc/fep/patches')
-rw-r--r--misc/fep/patches/patch-ae15
1 files changed, 12 insertions, 3 deletions
diff --git a/misc/fep/patches/patch-ae b/misc/fep/patches/patch-ae
index 3075c3a5a0e..6fa9416cce3 100644
--- a/misc/fep/patches/patch-ae
+++ b/misc/fep/patches/patch-ae
@@ -1,7 +1,7 @@
-$NetBSD: patch-ae,v 1.1 2000/02/07 03:18:11 christos Exp $
+$NetBSD: patch-ae,v 1.2 2003/03/09 04:39:29 salo Exp $
---- fep_edit.c.orig Fri Jan 20 03:16:37 1995
-+++ fep_edit.c Sun Feb 6 21:46:22 2000
+--- fep_edit.c.orig 1995-01-20 09:16:37.000000000 +0100
++++ fep_edit.c 2003-03-09 05:26:37.000000000 +0100
@@ -8,7 +8,17 @@
#include <stdio.h>
#include <sys/types.h>
@@ -98,6 +98,15 @@ $NetBSD: patch-ae,v 1.1 2000/02/07 03:18:11 christos Exp $
&& curFuncTab[c] != send_eof
&& ! look_var ("ignore-eof")
&& CommandLine [0] == '\0'
+@@ -426,7 +465,7 @@
+
+ currentNull = strlen (CommandLine);
+
+- if (currentNull >= maxline) {
++ if (currentNull + 1 >= maxline) {
+ errorBell();
+ return (0);
+ }
@@ -1481,7 +1520,11 @@
*/
send_eof()