projects
/
oweals
/
dinit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fe31e4
)
Fix bug in buffer pointer calculation
author
Davin McCall
<davmac@davmac.org>
Thu, 23 Jun 2016 10:00:32 +0000
(11:00 +0100)
committer
Davin McCall
<davmac@davmac.org>
Thu, 23 Jun 2016 10:00:32 +0000
(11:00 +0100)
src/cpbuffer.h
patch
|
blob
|
history
diff --git
a/src/cpbuffer.h
b/src/cpbuffer.h
index eb77523dd78584d9f3058b5b1a3cdee0efeeaf7d..1478b740a9ac2512c971f85e61b0e962ab45279e 100644
(file)
--- a/
src/cpbuffer.h
+++ b/
src/cpbuffer.h
@@
-26,7
+26,7
@@
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()