summaryrefslogtreecommitdiffstats
path: root/usr.bin/make
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2005-02-10 17:01:46 +0000
committerharti <harti@FreeBSD.org>2005-02-10 17:01:46 +0000
commit5ac91dfb2b3ecaf85d364f9dd2c55a9685268c07 (patch)
tree24837dd4142791a68968f65af130ab0db9152223 /usr.bin/make
parentbfba17efd61d1643bd92a9cc9aa0210b0d20f298 (diff)
downloadFreeBSD-src-5ac91dfb2b3ecaf85d364f9dd2c55a9685268c07.zip
FreeBSD-src-5ac91dfb2b3ecaf85d364f9dd2c55a9685268c07.tar.gz
Buffers are already NUL-terminated so there is no need to explicitely add
a NULL. Submitted by: Max Okumoto <okumoto@ucsd.edu>
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/var.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/usr.bin/make/var.c b/usr.bin/make/var.c
index 5e9f3db..ede5591 100644
--- a/usr.bin/make/var.c
+++ b/usr.bin/make/var.c
@@ -1894,7 +1894,6 @@ Var_Subst(const char *var, char *str, GNode *ctxt, Boolean undefErr)
}
}
- Buf_AddByte(buf, '\0');
result = (char *)Buf_GetAll(buf, (size_t *)NULL);
Buf_Destroy(buf, FALSE);
return (result);
OpenPOWER on IntegriCloud