Buffers are already NUL-terminated so there is no need to explicitely add

a NULL.

Submitted by:	Max Okumoto <okumoto@ucsd.edu>
This commit is contained in:
Hartmut Brandt 2005-02-10 17:01:46 +00:00
parent b4b64678d0
commit 26478079f7

View File

@ -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); result = (char *)Buf_GetAll(buf, (size_t *)NULL);
Buf_Destroy(buf, FALSE); Buf_Destroy(buf, FALSE);
return (result); return (result);