diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-27 16:51:27 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-27 16:51:27 -0500 |
commit | f02fa3b6e1f6c3b1c1325b999f101b5ca6e02558 (patch) | |
tree | 19372b99cef17f6312454688d5e115c10aff3ac9 /util.c | |
parent | 710ea4ef8ca812aa4f0334f93c25fd9995a8e364 (diff) |
started warn on overwrite
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -110,6 +110,8 @@ static void str_cpy(char *dst, size_t dst_sz, char const *src) { dst[n] = 0; } +#define strbuf_cpy(dst, src) str_cpy(dst, sizeof dst, src) + // advances str to the start of the next UTF8 character static void utf8_next_char_const(char const **str) { if (**str) { |