summaryrefslogtreecommitdiff
path: root/usr.bin/vi/common/options.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/options.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/options.c')
-rw-r--r--usr.bin/vi/common/options.c4
1 files changed, 2 insertions, 2 deletions
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 <sys/types.h>
@@ -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) {