From 874d317334fae1ddce316f9b6f4d0ce4e434bf52 Mon Sep 17 00:00:00 2001 From: Thomas Ulmer Date: Tue, 23 Jun 2026 21:34:41 -0700 Subject: heirloom vi fixes from arch AUR --- ex_re.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ex_re.c') diff --git a/ex_re.c b/ex_re.c index fb00c38..469d554 100644 --- a/ex_re.c +++ b/ex_re.c @@ -475,7 +475,7 @@ comprhs(int seof) #ifdef BIT8 qp = rhsquo; #endif - CP(orhsbuf, rp); + lcpy(orhsbuf, rp, sizeof orhsbuf); #ifdef BIT8 copy(orhsquo, qp, (size_t) strlen(rp)); #endif @@ -778,7 +778,7 @@ ovflo: loc2 += n; } #endif /* UXRE */ - while (*sp++ = *lp++) + while ((*sp++ = *lp++)) if (sp >= &genbuf[LBSIZE]) goto ovflo; strcLIN(genbuf); @@ -857,9 +857,9 @@ snote(register int total, register int lines) if (!notable(total)) return; - printf(mesg(catgets(catd, 1, 131, "%d subs|%d substitutions")), total); + ex_printf(mesg(catgets(catd, 1, 131, "%d subs|%d substitutions")), total); if (lines != 1 && lines != total) - printf(catgets(catd, 1, 132, " on %d lines"), lines); + ex_printf(catgets(catd, 1, 132, " on %d lines"), lines); noonl(); flush(); } -- cgit v1.2.3