Browse Source

buf: Fix rpos

Serj Kalichev 1 year ago
parent
commit
1b3677a8dd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      faux/buf/buf.c

+ 1 - 0
faux/buf/buf.c

@@ -822,6 +822,7 @@ ssize_t faux_buf_dwrite_unlock(faux_buf_t *buf, size_t really_written,
 			faux_list_del(buf->list, buf->wchunk);
 			buf->wchunk = NULL;
 			buf->wpos = buf->chunk_size;
+			buf->rpos = 0;
 		}
 	}