Skip to content
Snippets Groups Projects
Commit b4142547 authored by Niels Möller's avatar Niels Möller
Browse files

(nettle_buffer_grow): Fixed assertion.

Rev: src/nettle/buffer.c:1.4
parent 9d1b3eed
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ int
nettle_buffer_grow(struct nettle_buffer *buffer,
unsigned length)
{
assert(buffer->size <= buffer->realloc);
assert(buffer->size <= buffer->alloc);
if (buffer->size + length > buffer->alloc)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment