Mercurial > hg > nnchat
diff util.h @ 681:ceb73b712121
Fix an issue in editBuffer handling.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 09 Jul 2018 05:59:13 +0300 |
parents | 32c13602c091 |
children | 93d0e1547842 |
line wrap: on
line diff
--- a/util.h Mon Jul 02 00:04:53 2018 +0300 +++ b/util.h Mon Jul 09 05:59:13 2018 +0300 @@ -68,7 +68,8 @@ void nn_editbuf_clear(nn_editbuf_t *buf); nn_editbuf_t * nn_editbuf_new(size_t n); void nn_editbuf_free(nn_editbuf_t *buf); -nn_editbuf_t * nn_editbuf_copy(nn_editbuf_t *src); +nn_editbuf_t * nn_editbuf_copy(const nn_editbuf_t *src); +void nn_editbuf_copy_to(nn_editbuf_t *dst, const nn_editbuf_t *src); void nn_editbuf_setpos(nn_editbuf_t *buf, size_t pos); char * nn_editbuf_get_string(nn_editbuf_t *buf, size_t start, size_t end);