summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2007-11-13 00:30:17 +0000
committererdgeist <>2007-11-13 00:30:17 +0000
commit17b2ce10820ae13b2807ef94d48f04d8dfe08ab3 (patch)
treeab6bd9ac911247a9389d4bc9af61a5ae74c79a3b
parent04214491eed75d8239abd91ebfcf58586f7597a8 (diff)
Rather embarrasing arithmetic fuckup
-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;