summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ot_iovec.c2
1 files changed, 1 insertions, 1 deletions
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 @@
14#include "ot_iovec.h" 14#include "ot_iovec.h"
15 15
16void *iovec_increase( int *iovec_entries, struct iovec **iovector, size_t new_alloc ) { 16void *iovec_increase( int *iovec_entries, struct iovec **iovector, size_t new_alloc ) {
17 void *new_ptr = realloc( *iovector, 1 + *iovec_entries * sizeof( struct iovec ) ); 17 void *new_ptr = realloc( *iovector, (1 + *iovec_entries ) * sizeof( struct iovec ) );
18 if( !new_ptr ) 18 if( !new_ptr )
19 return NULL; 19 return NULL;
20 *iovector = new_ptr; 20 *iovector = new_ptr;