diff options
-rw-r--r-- | ot_iovec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -14,7 +14,7 @@ | |||
14 | #include "ot_iovec.h" | 14 | #include "ot_iovec.h" |
15 | 15 | ||
16 | void *iovec_increase( int *iovec_entries, struct iovec **iovector, size_t new_alloc ) { | 16 | void *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; |