projects
/
oweals
/
dinit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Release soft dependencies if they stop early.
[oweals/dinit.git]
/
src
/
cpbuffer.h
diff --git
a/src/cpbuffer.h
b/src/cpbuffer.h
index 1c05174a6ea8db0f1be1519a0a14cb8702fe9a40..1478b740a9ac2512c971f85e61b0e962ab45279e 100644
(file)
--- a/
src/cpbuffer.h
+++ b/
src/cpbuffer.h
@@
-26,7
+26,12
@@
template <int SIZE> class CPBuffer
int pos = cur_idx + index;
if (pos >= SIZE) pos -= SIZE;
- return &buf[cur_idx];
+ return &buf[pos];
+ }
+
+ char * get_buf_base()
+ {
+ return buf;
}
int get_contiguous_length(char *ptr)