mirror of
https://github.com/boostorg/build.git
synced 2026-02-13 00:12:11 +00:00
Merge pull request #350 from jwakely/patch-1
Use correct sizeof in malloc call
This commit is contained in:
@@ -248,7 +248,7 @@ static void hashrehash( struct hash * hp )
|
||||
BJAM_FREE( (char *)hp->tab.base );
|
||||
|
||||
hp->tab.nel = hp->items.nel * hp->bloat;
|
||||
hp->tab.base = (ITEM * *)BJAM_MALLOC( hp->tab.nel * sizeof( ITEM * * ) );
|
||||
hp->tab.base = (ITEM * *)BJAM_MALLOC( hp->tab.nel * sizeof( ITEM * ) );
|
||||
|
||||
memset( (char *)hp->tab.base, '\0', hp->tab.nel * sizeof( ITEM * ) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user