spelling: contiguous

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref 2025-01-28 13:20:09 -05:00
parent 74d9fc2ef5
commit e3dd54fda9
2 changed files with 4 additions and 4 deletions

View file

@ -143,8 +143,8 @@ bool circular_buffer_read_or_copy(const CircularBuffer* buffer, uint8_t **data_o
if (buffer->data_length < length) {
return false;
}
const uint16_t continguous_length = (buffer->buffer_size - buffer->read_index);
const bool should_malloc_and_copy = (length > continguous_length);
const uint16_t contiguous_length = (buffer->buffer_size - buffer->read_index);
const bool should_malloc_and_copy = (length > contiguous_length);
*caller_should_free = should_malloc_and_copy;
if (should_malloc_and_copy) {
*data_out = (uint8_t *) malloc_imp(length);