diff options
author | michaels <michaels@cvs.openbsd.org> | 1996-09-17 17:19:12 +0000 |
---|---|---|
committer | michaels <michaels@cvs.openbsd.org> | 1996-09-17 17:19:12 +0000 |
commit | fed417a38b95b13128c9588fd9f104da9b06bf41 (patch) | |
tree | 9591de9a563efff93cad28ba39dc4faf29aa4d92 /usr.bin/vi/common/line.c | |
parent | 8cb1a1f6c9600981e4080fa44207d08d8c080e8f (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.c | 5 |
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; |