summaryrefslogtreecommitdiff
path: root/src/cbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cbuf.c')
-rw-r--r--src/cbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cbuf.c b/src/cbuf.c
index 9c28fbe..3021f1e 100644
--- a/src/cbuf.c
+++ b/src/cbuf.c
@@ -222,12 +222,12 @@ void
cbuf_set_start(struct cbuf *cbuf, size_t start)
{
cbuf->start = start;
- cbuf_update_start(cbuf);
+ cbuf_update_end(cbuf);
}
void
cbuf_set_end(struct cbuf *cbuf, size_t end)
{
cbuf->end = end;
- cbuf_update_end(cbuf);
+ cbuf_update_start(cbuf);
}