]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Rather embarrasing arithmetic fuckup
authorerdgeist <>
Tue, 13 Nov 2007 00:30:17 +0000 (00:30 +0000)
committererdgeist <>
Tue, 13 Nov 2007 00:30:17 +0000 (00:30 +0000)
ot_iovec.c

index ea3dd2329750a58a987d6c1347608c3f90a62ba4..a098733a1a784f66c49a165ea12df6b970d93aa0 100644 (file)
@@ -14,7 +14,7 @@
 #include "ot_iovec.h"
 
 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 )
     return NULL;
   *iovector = new_ptr;