From b41425477b54c093e895c112bbcf7ede03c5c01f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Wed, 4 Dec 2002 10:37:21 +0100 Subject: [PATCH] (nettle_buffer_grow): Fixed assertion. Rev: src/nettle/buffer.c:1.4 --- buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buffer.c b/buffer.c index 08e4b6b3..e61b471f 100644 --- a/buffer.c +++ b/buffer.c @@ -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) { -- GitLab