Skip to content

Commit

Permalink
Note bad limit on offsets for find().
Browse files Browse the repository at this point in the history
  • Loading branch information
caladri committed Jun 26, 2015
1 parent 6cf2245 commit 5b7d867
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/buffer.h
Expand Up @@ -1080,6 +1080,10 @@ class Buffer {
* Finds the first occurance of character ch in this Buffer's data and
* sets offsetp to the offset it was found at. If a limit is given, at
* most that many characters will be searched.
*
* XXX
* We need to convert the offset here to a size_t, since we might have
* a lot of data in a Buffer these days.
*/
bool find(uint8_t ch, unsigned *offsetp, size_t limit = 0) const
{
Expand Down

0 comments on commit 5b7d867

Please sign in to comment.