diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-07-24 16:16:11 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-07-24 16:16:11 +0000 |
commit | 9fe0ebe622331e4ca8b324440857ac3415cf231e (patch) | |
tree | da7d517118e7d40dfef8b4943e368ecbd43475cb /usr.bin/vi/ex/ex_at.c | |
parent | 4e78eb09c86098d70b62e357fffcf4c3d379074f (diff) |
bring vi/ex up to 1.71
Diffstat (limited to 'usr.bin/vi/ex/ex_at.c')
-rw-r--r-- | usr.bin/vi/ex/ex_at.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/vi/ex/ex_at.c b/usr.bin/vi/ex/ex_at.c index 15081ef4f9e..630c11d8507 100644 --- a/usr.bin/vi/ex/ex_at.c +++ b/usr.bin/vi/ex/ex_at.c @@ -10,7 +10,7 @@ #include "config.h" #ifndef lint -static const char sccsid[] = "@(#)ex_at.c 10.10 (Berkeley) 4/27/96"; +static const char sccsid[] = "@(#)ex_at.c 10.11 (Berkeley) 6/30/96"; #endif /* not lint */ #include <sys/types.h> @@ -108,14 +108,13 @@ ex_at(sp, cmdp) tp != (void *)&cbp->textq; tp = tp->q.cqe_prev) len += tp->len + 1; - /* See ex.h for a discussion of SEARCH_TERMINATION. */ - MALLOC_RET(sp, ecp->cp, char *, len * 2 + SEARCH_TERMINATION); + MALLOC_RET(sp, ecp->cp, char *, len * 2); ecp->o_cp = ecp->cp; ecp->o_clen = len; ecp->cp[len] = '\0'; /* Copy the buffer into the command space. */ - for (p = ecp->cp + len + SEARCH_TERMINATION, tp = cbp->textq.cqh_last; + for (p = ecp->cp + len, tp = cbp->textq.cqh_last; tp != (void *)&cbp->textq; tp = tp->q.cqe_prev) { memmove(p, tp->lb, tp->len); p += tp->len; |