mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-05 14:07:27 -08:00
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:
parent
3d6bb2617e
commit
89eb9529b9
@ -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);
|
||||
}
|
||||
|
||||
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user