summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/buffering.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/buffering.c b/apps/buffering.c
index f5bc2eeb19..1567a6ea91 100644
--- a/apps/buffering.c
+++ b/apps/buffering.c
@@ -1187,6 +1187,9 @@ ssize_t bufcuttail(int handle_id, size_t size)
1187 h->available -= size; 1187 h->available -= size;
1188 h->filesize -= size; 1188 h->filesize -= size;
1189 h->widx = RINGBUF_SUB(h->widx, size); 1189 h->widx = RINGBUF_SUB(h->widx, size);
1190 if (h == cur_handle) {
1191 buf_widx = h->widx;
1192 }
1190 return size; 1193 return size;
1191} 1194}
1192 1195