summaryrefslogtreecommitdiff
path: root/src/til_tap.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-06-26 17:19:35 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-07-04 21:09:16 -0700
commit3c5db5339454f48edb48c9b1498c1832c6711eb1 (patch)
tree2c371c67ffe963ac85904090d45e6f163781b8ee /src/til_tap.c
parenta33c742c87c5e267f00e561c27f96ddfb522f6bc (diff)
til_str: exclude \0 from res_len for til_str_buf()/til_str_to_buf()
It's more ergonomic more often to behave consistently with strlen() here, plus it's just the established mental model. While here I made til_settings_path_as_buf() private as nothing external uses it, it's essentially just a logically distinct private helper function from the public wrappers around it. Dragged into this changeset due to clarifying some naming/semantics as it's one of the few til_str_to_buf() callers. But nobody was actually passing a non-NULL res_bufsz/res_len to it anyways, as its use is minimal.
Diffstat (limited to 'src/til_tap.c')
0 files changed, 0 insertions, 0 deletions
© All Rights Reserved