From fed417a38b95b13128c9588fd9f104da9b06bf41 Mon Sep 17 00:00:00 2001 From: michaels Date: Tue, 17 Sep 1996 17:19:12 +0000 Subject: 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. --- usr.bin/vi/common/options.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/vi/common/options.c') diff --git a/usr.bin/vi/common/options.c b/usr.bin/vi/common/options.c index 9dea74ddff3..8b5468e45ff 100644 --- a/usr.bin/vi/common/options.c +++ b/usr.bin/vi/common/options.c @@ -10,7 +10,7 @@ #include "config.h" #ifndef lint -static const char sccsid[] = "@(#)options.c 10.48 (Berkeley) 8/10/96"; +static const char sccsid[] = "@(#)options.c 10.49 (Berkeley) 9/15/96"; #endif /* not lint */ #include @@ -1072,7 +1072,7 @@ opts_copy(orig, sp) int cnt, rval; /* Copy most everything without change. */ - memmove(sp->opts, orig->opts, sizeof(orig->opts)); + memcpy(sp->opts, orig->opts, sizeof(orig->opts)); /* Copy the string edit options. */ for (cnt = rval = 0; cnt < O_OPTIONCOUNT; ++cnt) { -- cgit v1.2.3