summaryrefslogtreecommitdiff
path: root/usr.bin/vi/common/line.c
diff options
context:
space:
mode:
authormichaels <michaels@cvs.openbsd.org>1996-09-17 17:19:12 +0000
committermichaels <michaels@cvs.openbsd.org>1996-09-17 17:19:12 +0000
commitfed417a38b95b13128c9588fd9f104da9b06bf41 (patch)
tree9591de9a563efff93cad28ba39dc4faf29aa4d92 /usr.bin/vi/common/line.c
parent8cb1a1f6c9600981e4080fa44207d08d8c080e8f (diff)
nvi 1.76:
+ Fix bug where ^V didn't keep input mapping from happening. + Fix a core dump bug in the R command. + Give up on licensing: no more shareware, adware, whatever. + Fix cursor positioning bug for C, S and c$ in an empty file.
Diffstat (limited to 'usr.bin/vi/common/line.c')
-rw-r--r--usr.bin/vi/common/line.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/vi/common/line.c b/usr.bin/vi/common/line.c
index 1639cc79026..bcb9e0c86bc 100644
--- a/usr.bin/vi/common/line.c
+++ b/usr.bin/vi/common/line.c
@@ -10,7 +10,7 @@
#include "config.h"
#ifndef lint
-static const char sccsid[] = "@(#)line.c 10.20 (Berkeley) 4/27/96";
+static const char sccsid[] = "@(#)line.c 10.21 (Berkeley) 9/15/96";
#endif /* not lint */
#include <sys/types.h>
@@ -20,7 +20,6 @@ static const char sccsid[] = "@(#)line.c 10.20 (Berkeley) 4/27/96";
#include <bitstring.h>
#include <errno.h>
#include <limits.h>
-#include <signal.h>
#include <stdio.h>
#include <string.h>
@@ -521,7 +520,7 @@ db_last(sp, lnop)
}
/* Fill the cache. */
- memmove(&lno, key.data, sizeof(lno));
+ memcpy(&lno, key.data, sizeof(lno));
ep->c_nlines = ep->c_lno = lno;
ep->c_len = data.size;
ep->c_lp = data.data;