summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-dialup/minicom/files/minicom-2.1-memcpy-bounds.diff')
-rw-r--r--net-dialup/minicom/files/minicom-2.1-memcpy-bounds.diff14
1 files changed, 0 insertions, 14 deletions
diff --git a/net-dialup/minicom/files/minicom-2.1-memcpy-bounds.diff b/net-dialup/minicom/files/minicom-2.1-memcpy-bounds.diff
deleted file mode 100644
index 64e64400202c..000000000000
--- a/net-dialup/minicom/files/minicom-2.1-memcpy-bounds.diff
+++ /dev/null
@@ -1,14 +0,0 @@
---- src/window.c.orig 2004-02-26 23:47:07.000000000 -0500
-+++ src/window.c 2004-02-26 23:46:24.000000000 -0500
-@@ -1583,7 +1583,11 @@ int move;
- x = w->x1 + w->curx;
- oldx = w->curx;
- len = w->xs - w->curx;
-+#ifdef NO_BOUNDS_CHECKING
- memcpy(buf, gmap + COLS * y + x, sizeof(ELM) * len);
-+#else
-+ memcpy(buf, gmap + COLS * y + x, ((sizeof(ELM) * len) < sizeof(buf)) ? (sizeof(ELM) * len) : sizeof(buf) );
-+#endif
-
- /* Now, put the new character on screen. */
- wputc(w, c);