Skip to content

Commit

Permalink
memory buffer was not always cleared correctly in erase_front
Browse files Browse the repository at this point in the history
  • Loading branch information
jsteemann committed Oct 11, 2012
1 parent 4dffbc8 commit dcf09cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/BasicsC/string-buffer.c
Expand Up @@ -259,7 +259,7 @@ void TRI_EraseFrontStringBuffer (TRI_string_buffer_t * self, size_t len) {
else if (0 < len) {
memmove(self->_buffer, self->_buffer + len, off - len);
self->_current -= len;
memset(self->_current, 0, self->_len - off);
memset(self->_current, 0, self->_len - (self->_current - self->_buffer));
}
}

Expand Down

0 comments on commit dcf09cf

Please sign in to comment.