summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-27 16:51:27 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-27 16:51:27 -0500
commitf02fa3b6e1f6c3b1c1325b999f101b5ca6e02558 (patch)
tree19372b99cef17f6312454688d5e115c10aff3ac9 /util.c
parent710ea4ef8ca812aa4f0334f93c25fd9995a8e364 (diff)
started warn on overwrite
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.c b/util.c
index 651135e..b68efd3 100644
--- a/util.c
+++ b/util.c
@@ -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) {