summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-editors/bvi/files/bvi-1.3.2-fix-buffer-overflow.patch')
-rw-r--r--app-editors/bvi/files/bvi-1.3.2-fix-buffer-overflow.patch22
1 files changed, 0 insertions, 22 deletions
diff --git a/app-editors/bvi/files/bvi-1.3.2-fix-buffer-overflow.patch b/app-editors/bvi/files/bvi-1.3.2-fix-buffer-overflow.patch
deleted file mode 100644
index e3ebaa3d1295..000000000000
--- a/app-editors/bvi/files/bvi-1.3.2-fix-buffer-overflow.patch
+++ /dev/null
@@ -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);
- }
-