summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2002-12-04 10:37:21 +0100
committerNiels Möller <nisse@lysator.liu.se>2002-12-04 10:37:21 +0100
commitb41425477b54c093e895c112bbcf7ede03c5c01f (patch)
treeb3302edbf5eb4da25bff65705a93731ddf34ae2d /buffer.c
parent9d1b3eed26e2fcc7780a5b01c26d695d1800443f (diff)
downloadnettle-b41425477b54c093e895c112bbcf7ede03c5c01f.tar.gz
(nettle_buffer_grow): Fixed assertion.
Rev: src/nettle/buffer.c:1.4
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c2
1 files changed, 1 insertions, 1 deletions
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)
{