]> git.ipfire.org Git - thirdparty/systemd.git/commit
string-util: make strgrowpad0() a bit safer
authorLennart Poettering <lennart@poettering.net>
Mon, 25 Sep 2023 17:06:06 +0000 (19:06 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 25 Sep 2023 17:10:37 +0000 (19:10 +0200)
commit8e4795842317663aabac3cda1ec6e7f7844e31c6
treeaeb6de3ed19a7b8b0d3210806f370cd4d2a1ff43
parentb907b9075e63ad9953ad82ff05ec6b25c3c00fe2
string-util: make strgrowpad0() a bit safer

Let#s make sure we never shorten the allocation leaving an invalid
string (i.e. a memory allocation without a trailing NUL) around.
src/basic/string-util.c