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:
parent
b4b64678d0
commit
26478079f7
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user