mirror of
git://erdgeist.org/opentracker
synced 2025-04-21 21:52:00 +02:00
Rather embarrasing arithmetic fuckup
This commit is contained in:
parent
04214491ee
commit
17b2ce1082
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@
|
||||||
#include "ot_iovec.h"
|
#include "ot_iovec.h"
|
||||||
|
|
||||||
void *iovec_increase( int *iovec_entries, struct iovec **iovector, size_t new_alloc ) {
|
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 )
|
if( !new_ptr )
|
||||||
return NULL;
|
return NULL;
|
||||||
*iovector = new_ptr;
|
*iovector = new_ptr;
|
||||||
|
|
Loading…
Add table
Reference in a new issue