X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fcpbuffer.h;h=1478b740a9ac2512c971f85e61b0e962ab45279e;hb=36d2781d9f4890dda54419d38679d2da3d04b7bd;hp=eb77523dd78584d9f3058b5b1a3cdee0efeeaf7d;hpb=16c8aa0bc952c7aa48c0863774eb70e1de2b1aba;p=oweals%2Fdinit.git diff --git a/src/cpbuffer.h b/src/cpbuffer.h index eb77523..1478b74 100644 --- a/src/cpbuffer.h +++ b/src/cpbuffer.h @@ -26,7 +26,7 @@ template class CPBuffer int pos = cur_idx + index; if (pos >= SIZE) pos -= SIZE; - return &buf[cur_idx]; + return &buf[pos]; } char * get_buf_base()