commit: Null terminate `target_buf` var
authorLuke Yang <luke.jia.yang@gmail.com>
Wed, 12 Jun 2024 19:51:41 +0000 (15:51 -0400)
committerLuke Yang <luke.jia.yang@gmail.com>
Thu, 20 Jun 2024 19:09:11 +0000 (15:09 -0400)
commit20d5bc8453edf780b6a162a6568e211310211108
tree3ea21cabe9c1eae99f867c6c94f516377542d3bd
parentdc9eaef1e5143a0276d3fa144b7f295f4f01274a
commit: Null terminate `target_buf` var

Coverity points out that we are passing an unterminated string to
sprintf(). Fix by using snprintf() which stores the content as a C
string.
src/libostree/ostree-repo-commit.c