summaryrefslogtreecommitdiff
path: root/src/makeint.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2023-03-26 09:24:06 -0400
committerPaul Smith <psmith@gnu.org>2023-03-26 09:24:06 -0400
commita367c0640fcbf9872cde1f8c79f4f11658807ad1 (patch)
treea1789aa5c494ae11ab3aeebde5bf09b202c95776 /src/makeint.h
parent3088e3e69874f4f25349e1870da5eeeb8a88e1ca (diff)
downloadmake-git-a367c0640fcbf9872cde1f8c79f4f11658807ad1.tar.gz
Ensure variable_buffer is always nul-terminated
* src/expand.c (variable_buffer_output): Allocate an extra byte and set it to nul. For safety, add assert() on PTR. (variable_expand_string): Don't call variable_buffer_output just to add a nul byte. (allocated_variable_append): Ditto.
Diffstat (limited to 'src/makeint.h')
0 files changed, 0 insertions, 0 deletions