diff options
Diffstat (limited to 'libmsi/string.c')
-rw-r--r-- | libmsi/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmsi/string.c b/libmsi/string.c index 39071e4..3b8c6ec 100644 --- a/libmsi/string.c +++ b/libmsi/string.c @@ -138,7 +138,7 @@ static int st_find_free_entry( string_table *st ) /* dynamically resize */ sz = st->maxcount + 1 + st->maxcount/2; - p = msi_realloc_zero( st->strings, sz * sizeof(struct msistring) ); + p = msi_realloc_zero( st->strings, st->maxcount * sizeof(struct msistring), sz * sizeof(struct msistring) ); if( !p ) return -1; |