From 17b2ce10820ae13b2807ef94d48f04d8dfe08ab3 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Tue, 13 Nov 2007 00:30:17 +0000 Subject: Rather embarrasing arithmetic fuckup --- ot_iovec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ot_iovec.c b/ot_iovec.c index ea3dd23..a098733 100644 --- a/ot_iovec.c +++ b/ot_iovec.c @@ -14,7 +14,7 @@ #include "ot_iovec.h" void *iovec_increase( int *iovec_entries, struct iovec **iovector, size_t new_alloc ) { - void *new_ptr = realloc( *iovector, 1 + *iovec_entries * sizeof( struct iovec ) ); + void *new_ptr = realloc( *iovector, (1 + *iovec_entries ) * sizeof( struct iovec ) ); if( !new_ptr ) return NULL; *iovector = new_ptr; -- cgit v1.2.3