diff options
author | wrmr | 2024-11-05 23:04:49 -0500 |
---|---|---|
committer | wrmr | 2024-11-05 23:04:49 -0500 |
commit | 9c932e49a7516570b6c1ff9863595d495e3a3212 (patch) | |
tree | cfd5205bd322da368699c47de59c16737ea7da24 /buf.c | |
parent | 9ee9d3c7dec6090316d21c2eed40992372ac3efa (diff) |
doc_add_link
Diffstat (limited to 'buf.c')
-rw-r--r-- | buf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buf.c b/buf.c index 8460631..fb3af82 100644 --- a/buf.c +++ b/buf.c @@ -25,7 +25,7 @@ void buf_grow(buf_t *b, size_t n) { } } -void buf_cat(buf_t *b, char *src, size_t n) { +void buf_cat(buf_t *b, const char *src, size_t n) { buf_grow(b, n); memcpy(&b->buf[b->sz], src, n); b->sz += n; |