diff options
author | René Scharfe <l.s.r@web.de> | 2018-05-19 10:27:46 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-21 09:58:56 +0900 |
commit | 735e4173b3feba0cc495bbb2dd85341b6378f628 (patch) | |
tree | 254110f834da6b030ca1e0b0a7490f76c040276d /t/t4139-apply-escape.sh | |
parent | log_write_email_headers: use strbufs (diff) | |
download | tgif-735e4173b3feba0cc495bbb2dd85341b6378f628.tar.xz |
fsmonitor: use internal argv_array of struct child_process
Avoid magic array sizes and indexes by constructing the fsmonitor
command line using the embedded argv_array of the child_process. The
resulting code is shorter and easier to extend.
Getting rid of the snprintf() calls is a bonus -- even though the
buffers were big enough here to avoid truncation -- as it makes auditing
the remaining callers easier.
Inspired-by: Jeff King <peff@peff.net>
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4139-apply-escape.sh')
0 files changed, 0 insertions, 0 deletions