diff options
author | harti <harti@FreeBSD.org> | 2005-02-07 07:49:16 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-02-07 07:49:16 +0000 |
commit | c45831f7c65accf983e86b1f1a883f20c27133e0 (patch) | |
tree | 66fb0e86c2921f8ecff474aa405874087d374906 /usr.bin/make/for.c | |
parent | d2bbb620e902ad472a90d5c5d1fc3286b192a0a2 (diff) | |
download | FreeBSD-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/for.c')
-rw-r--r-- | usr.bin/make/for.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/make/for.c b/usr.bin/make/for.c index 2c0ec05..b389062 100644 --- a/usr.bin/make/for.c +++ b/usr.bin/make/for.c @@ -226,7 +226,7 @@ For_Eval(char *line) } if (forLevel != 0) { - Buf_AddBytes(forBuf, strlen(line), (Byte *)line); + Buf_Append(forBuf, line); Buf_AddByte(forBuf, (Byte)'\n'); return (1); } |