diff options
author | erdgeist <> | 2007-11-13 00:30:17 +0000 |
---|---|---|
committer | erdgeist <> | 2007-11-13 00:30:17 +0000 |
commit | 17b2ce10820ae13b2807ef94d48f04d8dfe08ab3 (patch) | |
tree | ab6bd9ac911247a9389d4bc9af61a5ae74c79a3b | |
parent | 04214491eed75d8239abd91ebfcf58586f7597a8 (diff) |
Rather embarrasing arithmetic fuckup
-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; |