Fix buffer overrun.

PR:		ports/48979
Submitted by:	Nobuhiro Yasutomi <nobu@psrc.isac.co.jp> (maintainer)
Reported by:	Phil Shafer <phil@juniper.net>
This commit is contained in:
Norikatsu Shigemura 2003-03-06 15:54:35 +00:00
parent 408837251b
commit 03cd554259
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=77034

View file

@ -0,0 +1,11 @@
--- fep_edit.c.orig Fri Jan 20 17:16:37 1995
+++ fep_edit.c Thu Mar 6 09:42:13 2003
@@ -426,7 +426,7 @@
currentNull = strlen (CommandLine);
- if (currentNull >= maxline) {
+ if (currentNull + 1 >= maxline) {
errorBell();
return (0);
}