summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/str.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2005-02-07 07:49:16 +0000
committerharti <harti@FreeBSD.org>2005-02-07 07:49:16 +0000
commitc45831f7c65accf983e86b1f1a883f20c27133e0 (patch)
tree66fb0e86c2921f8ecff474aa405874087d374906 /usr.bin/make/str.c
parentd2bbb620e902ad472a90d5c5d1fc3286b192a0a2 (diff)
downloadFreeBSD-src-c45831f7c65accf983e86b1f1a883f20c27133e0.zip
FreeBSD-src-c45831f7c65accf983e86b1f1a883f20c27133e0.tar.gz
Invent a Buf_Append function to append a NUL-terminated string
and use it thoughout the code. Submitted by: Max Okumoto <okumoto@ucsd.edu>
Diffstat (limited to 'usr.bin/make/str.c')
-rw-r--r--usr.bin/make/str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/make/str.c b/usr.bin/make/str.c
index c0eac138..52cb9cc 100644
--- a/usr.bin/make/str.c
+++ b/usr.bin/make/str.c
@@ -524,5 +524,5 @@ Str_SYSVSubst(Buffer *buf, const char *pat, const char *src, int len)
Buf_AddBytes(buf, len, (const Byte *)src);
/* append the rest */
- Buf_AddBytes(buf, strlen(pat), (const Byte *)pat);
+ Buf_Append(buf, pat);
}
OpenPOWER on IntegriCloud