app-editors/bvi: remove unused patch(es)

Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/11183
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Michael Mair-Keimberger 2019-03-01 18:00:15 +01:00 committed by Andreas Sturmlechner
parent 3d6bb2617e
commit 89eb9529b9
No known key found for this signature in database
GPG Key ID: E7255695D8BA079E
2 changed files with 0 additions and 57 deletions

View File

@ -1,22 +0,0 @@
diff --git a/edit.c b/edit.c
index 328a0cd..3cf6572 100644
--- a/edit.c
+++ b/edit.c
@@ -42,7 +42,7 @@ char contru[][4] = {"NUL", "SOH", "STX", "ETX", "EOT", "ENQ", "ACK", "BEL",
"CAN", " EM", "SUB", "ESC", " FS", " GS", " RS", " US",
"DEL" };
char tmpbuf[10];
-char linbuf[256];
+char linbuf[16384];
static char getcbuff[BUFFER];
static char *getcnext = NULL;
@@ -492,7 +492,7 @@ printline(mempos, scpos)
*(string + print_pos) = '.';
}
*(string + Anzahl) = '\0';
- strcat(linbuf, string);
+ strncat(linbuf, string, sizeof(linbuf) - strlen(linbuf) - 1);
mvaddstr(scpos, 0, linbuf);
}

View File

@ -1,35 +0,0 @@
diff --git a/configure.in b/configure.in
index 68076d8..81da696 100644
--- a/configure.in
+++ b/configure.in
@@ -58,17 +58,19 @@ AC_ARG_WITH(ncurses,
fi
])
-AC_CHECK_HEADER(ncurses.h,
- AC_CHECK_LIB(ncurses, initscr,
- AC_DEFINE(HAVE_NCURSES_H) LIBS="${LIBS} -lncurses",
- AC_CHECK_LIB(curses, initscr,
- AC_DEFINE(HAVE_CURSES_H) LIBS="${LIBS} -lcurses",
- AC_MSG_ERROR([bvi requires the curses library]))),
- AC_CHECK_HEADER(curses.h,
- AC_CHECK_LIB(curses, initscr,
- AC_DEFINE(HAVE_CURSES_H) LIBS="${LIBS} -lcurses",
- AC_MSG_ERROR([bvi requires the curses library])),
- AC_MSG_ERROR([bvi requires the curses library])))
+AC_CHECK_HEADER([ncurses.h],[
+ AC_SEARCH_LIBS([initscr], [ncurses],[
+ AC_DEFINE(HAVE_NCURSES_H)
+ AC_SEARCH_LIBS([tputs], [tinfo])], [
+ AC_SEARCH_LIBS([initscr], [curses],[
+ AC_DEFINE(HAVE_CURSES_H)
+ AC_SEARCH_LIBS([tputs], [tinfo])],[
+ AC_MSG_ERROR([bvi requires the curses library])])])],[
+ AC_CHECK_HEADER([curses.h],[
+ AC_SEARCH_LIBS([initscr], [curses], [
+ AC_DEFINE(HAVE_CURSES_H)],[
+ AC_MSG_ERROR([bvi requires the curses library])])],[
+ AC_MSG_ERROR([bvi requires the curses library])])])
dnl Checks for typedefs, structures, and compiler characteristics.
dnl AC_TYPE_SIZE_T