summaryrefslogtreecommitdiff
path: root/usr.bin/vi/common/put.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/put.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/put.c')
-rw-r--r--usr.bin/vi/common/put.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/vi/common/put.c b/usr.bin/vi/common/put.c
index 76623e479d3..66e40a410ba 100644
--- a/usr.bin/vi/common/put.c
+++ b/usr.bin/vi/common/put.c
@@ -10,7 +10,7 @@
#include "config.h"
#ifndef lint
-static const char sccsid[] = "@(#)put.c 10.9 (Berkeley) 3/6/96";
+static const char sccsid[] = "@(#)put.c 10.10 (Berkeley) 9/15/96";
#endif /* not lint */
#include <sys/types.h>
@@ -125,13 +125,13 @@ put(sp, cbp, namep, cp, rp, append)
/* Original line, left of the split. */
if (len > 0 && (clen = cp->cno + (append ? 1 : 0)) > 0) {
- memmove(bp, p, clen);
+ memcpy(bp, p, clen);
p += clen;
t += clen;
}
/* First line from the CB. */
- memmove(t, tp->lb, tp->len);
+ memcpy(t, tp->lb, tp->len);
t += tp->len;
/* Calculate length left in the original line. */
@@ -161,7 +161,7 @@ put(sp, cbp, namep, cp, rp, append)
*/
if (tp->q.cqe_next == (void *)&cbp->textq) {
if (clen > 0) {
- memmove(t, p, clen);
+ memcpy(t, p, clen);
t += clen;
}
if (db_set(sp, lno, bp, t - bp))
@@ -187,9 +187,9 @@ put(sp, cbp, namep, cp, rp, append)
t = bp + len;
/* Add in last part of the CB. */
- memmove(t, ltp->lb, ltp->len);
+ memcpy(t, ltp->lb, ltp->len);
if (clen)
- memmove(t + ltp->len, p, clen);
+ memcpy(t + ltp->len, p, clen);
clen += ltp->len;
/*