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/util.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/util.c')
-rw-r--r-- | usr.bin/vi/common/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/vi/common/util.c b/usr.bin/vi/common/util.c index 1fb95bf898e..5a4422a2c42 100644 --- a/usr.bin/vi/common/util.c +++ b/usr.bin/vi/common/util.c @@ -10,7 +10,7 @@ #include "config.h" #ifndef lint -static const char sccsid[] = "@(#)util.c 10.10 (Berkeley) 3/6/96"; +static const char sccsid[] = "@(#)util.c 10.11 (Berkeley) 9/15/96"; #endif /* not lint */ #include <sys/types.h> @@ -136,7 +136,7 @@ v_strdup(sp, str, len) MALLOC(sp, copy, CHAR_T *, len + 1); if (copy == NULL) return (NULL); - memmove(copy, str, len * sizeof(CHAR_T)); + memcpy(copy, str, len * sizeof(CHAR_T)); copy[len] = '\0'; return (copy); } |