Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make make: in the modifier ':C', don't call strlen u...
details: https://anonhg.NetBSD.org/src/rev/d609193b3de2
branches: trunk
changeset: 1027613:d609193b3de2
user: rillig <rillig%NetBSD.org@localhost>
date: Mon Dec 13 03:03:42 2021 +0000
description:
make: in the modifier ':C', don't call strlen unnecessarily
No functional change.
diffstat:
usr.bin/make/var.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 115c9227fadf -r d609193b3de2 usr.bin/make/var.c
--- a/usr.bin/make/var.c Mon Dec 13 02:57:44 2021 +0000
+++ b/usr.bin/make/var.c Mon Dec 13 03:03:42 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: var.c,v 1.981 2021/12/13 02:57:44 rillig Exp $ */
+/* $NetBSD: var.c,v 1.982 2021/12/13 03:03:42 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -140,7 +140,7 @@
#include "metachar.h"
/* "@(#)var.c 8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: var.c,v 1.981 2021/12/13 02:57:44 rillig Exp $");
+MAKE_RCSID("$NetBSD: var.c,v 1.982 2021/12/13 03:03:42 rillig Exp $");
/*
* Variables are defined using one of the VAR=value assignments. Their
@@ -1692,7 +1692,7 @@
if (xrv != REG_NOMATCH)
VarREError(xrv, &args->re, "Unexpected regex error");
no_match:
- SepBuf_AddStr(buf, wp);
+ SepBuf_AddBytesBetween(buf, wp, word.end);
return;
ok:
Home |
Main Index |
Thread Index |
Old Index